From: Chris Lattner Date: Fri, 12 Jan 2007 18:35:11 +0000 (+0000) Subject: eliminate redundant check X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e9d4fa7a92e2f54fa7a67c506a3d97c549b0d0f3;p=oota-llvm.git eliminate redundant check git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33132 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/CondPropagate.cpp b/lib/Transforms/Scalar/CondPropagate.cpp index 253535e3a5e..55dccd78408 100644 --- a/lib/Transforms/Scalar/CondPropagate.cpp +++ b/lib/Transforms/Scalar/CondPropagate.cpp @@ -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(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;