File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/CodeGen/SelectionDAG Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -459,7 +459,7 @@ void FunctionLoweringInfo::ComputePHILiveOutRegInfo(const PHINode *PN) {
459459 }
460460
461461 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
462- APInt Val = CI->getValue ().zextOrTrunc (BitWidth);
462+ APInt Val = CI->getValue ().zextOrSelf (BitWidth);
463463 DestLOI.NumSignBits = Val.getNumSignBits ();
464464 DestLOI.Known = KnownBits::makeConstant (Val);
465465 } else {
@@ -491,7 +491,7 @@ void FunctionLoweringInfo::ComputePHILiveOutRegInfo(const PHINode *PN) {
491491 }
492492
493493 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
494- APInt Val = CI->getValue ().zextOrTrunc (BitWidth);
494+ APInt Val = CI->getValue ().zextOrSelf (BitWidth);
495495 DestLOI.NumSignBits = std::min (DestLOI.NumSignBits , Val.getNumSignBits ());
496496 DestLOI.Known .Zero &= ~Val;
497497 DestLOI.Known .One &= Val;
You can’t perform that action at this time.
0 commit comments