mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 12:33:33 +02:00
[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
784f263d08
commit
e633888ab8
@ -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…
Reference in New Issue
Block a user