From e3721e30024e6719c92f4744a265325084d7ef40 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 12 Jan 2007 18:35:11 +0000 Subject: eliminate redundant check llvm-svn: 33132 --- llvm/lib/Transforms/Scalar/CondPropagate.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/CondPropagate.cpp') diff --git a/llvm/lib/Transforms/Scalar/CondPropagate.cpp b/llvm/lib/Transforms/Scalar/CondPropagate.cpp index 253535e3a5e..55dccd78408 100644 --- a/llvm/lib/Transforms/Scalar/CondPropagate.cpp +++ b/llvm/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; -- cgit v1.2.3