mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
eliminate redundant check
llvm-svn: 33132
This commit is contained in:
parent
cee2f2e618
commit
18fa0e53fa
@ -134,7 +134,6 @@ void CondProp::SimplifyPredecessors(BranchInst *BI) {
|
||||
// possible, and to avoid invalidating "i".
|
||||
for (unsigned i = PN->getNumIncomingValues(); i != 0; --i)
|
||||
if (ConstantInt *CB = dyn_cast<ConstantInt>(PN->getIncomingValue(i-1))) {
|
||||
if (CB->getType() != Type::Int1Ty) continue;
|
||||
// If we have a constant, forward the edge from its current to its
|
||||
// ultimate destination.
|
||||
bool PHIGone = PN->getNumIncomingValues() == 2;
|
||||
|
Loading…
Reference in New Issue
Block a user