[llvm-commits] CVS: llvm/lib/Transforms/Scalar/CondPropagate.cpp

Chris Lattner sabre at nondot.org
Fri Jan 12 10:35:27 PST 2007



Changes in directory llvm/lib/Transforms/Scalar:

CondPropagate.cpp updated: 1.14 -> 1.15
---
Log message:

eliminate redundant check


---
Diffs of the changes:  (+0 -1)

 CondPropagate.cpp |    1 -
 1 files changed, 1 deletion(-)


Index: llvm/lib/Transforms/Scalar/CondPropagate.cpp
diff -u llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.14 llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.15
--- llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.14	Thu Jan 11 22:24:45 2007
+++ llvm/lib/Transforms/Scalar/CondPropagate.cpp	Fri Jan 12 12:35:11 2007
@@ -134,7 +134,6 @@
   // 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;






More information about the llvm-commits mailing list