mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
[FunctionLoweringInfo] Use KnownBits::intersectWith. NFC (#171893)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user