Skip to content

Commit 3e414b9

Browse files
authored
[FunctionLoweringInfo] Use KnownBits::intersectWith. NFC (llvm#171893)
1 parent 98a8072 commit 3e414b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,7 @@ void FunctionLoweringInfo::ComputePHILiveOutRegInfo(const PHINode *PN) {
517517
else
518518
Val = CI->getValue().zext(BitWidth);
519519
DestLOI.NumSignBits = std::min(DestLOI.NumSignBits, Val.getNumSignBits());
520-
DestLOI.Known.Zero &= ~Val;
521-
DestLOI.Known.One &= Val;
520+
DestLOI.Known = DestLOI.Known.intersectWith(KnownBits::makeConstant(Val));
522521
continue;
523522
}
524523

0 commit comments

Comments
 (0)