[FunctionLoweringInfo] Use KnownBits::intersectWith. NFC (#171893)

This commit is contained in:
Craig Topper
2025-12-11 13:21:02 -08:00
committed by GitHub
parent 98a8072a65
commit 3e414b940a

View File

@@ -517,8 +517,7 @@ void FunctionLoweringInfo::ComputePHILiveOutRegInfo(const PHINode *PN) {
else
Val = CI->getValue().zext(BitWidth);
DestLOI.NumSignBits = std::min(DestLOI.NumSignBits, Val.getNumSignBits());
DestLOI.Known.Zero &= ~Val;
DestLOI.Known.One &= Val;
DestLOI.Known = DestLOI.Known.intersectWith(KnownBits::makeConstant(Val));
continue;
}