We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a8072 commit 3e414b9Copy full SHA for 3e414b9
llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -517,8 +517,7 @@ void FunctionLoweringInfo::ComputePHILiveOutRegInfo(const PHINode *PN) {
517
else
518
Val = CI->getValue().zext(BitWidth);
519
DestLOI.NumSignBits = std::min(DestLOI.NumSignBits, Val.getNumSignBits());
520
- DestLOI.Known.Zero &= ~Val;
521
- DestLOI.Known.One &= Val;
+ DestLOI.Known = DestLOI.Known.intersectWith(KnownBits::makeConstant(Val));
522
continue;
523
}
524
0 commit comments