[SimplifyCFG] Use APInt::operator| instead of APInt::Or. NFC
I'm looking to improve operator| to support rvalue references and may remove APInt::Or. llvm-svn: 296982
This commit is contained in:
parent
6ffc044b2f
commit
b9dbd4d596
@ -4385,7 +4385,7 @@ static bool EliminateDeadSwitchCases(SwitchInst *SI, AssumptionCache *AC,
|
||||
bool HasDefault =
|
||||
!isa<UnreachableInst>(SI->getDefaultDest()->getFirstNonPHIOrDbg());
|
||||
const unsigned NumUnknownBits =
|
||||
Bits - (KnownZero.Or(KnownOne)).countPopulation();
|
||||
Bits - (KnownZero | KnownOne).countPopulation();
|
||||
assert(NumUnknownBits <= Bits);
|
||||
if (HasDefault && DeadCases.empty() &&
|
||||
NumUnknownBits < 64 /* avoid overflow */ &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user