Changes in directory llvm/lib/Transforms/Scalar:
CondPropagate.cpp updated: 1.16 -> 1.17 --- Log message: Although probably not necessary, guard against a potential assertion by using isNullValue() instead of getZExtValue() == 0. --- Diffs of the changes: (+1 -1) CondPropagate.cpp | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Transforms/Scalar/CondPropagate.cpp diff -u llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.16 llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.17 --- llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.16 Mon Feb 5 17:32:05 2007 +++ llvm/lib/Transforms/Scalar/CondPropagate.cpp Thu Mar 1 15:54:37 2007 @@ -139,7 +139,7 @@ // ultimate destination. bool PHIGone = PN->getNumIncomingValues() == 2; RevectorBlockTo(PN->getIncomingBlock(i-1), - BI->getSuccessor(CB->getZExtValue() == 0)); + BI->getSuccessor(CB->isNullValue())); ++NumBrThread; // If there were two predecessors before this simplification, the PHI node _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits