[llvm-commits] CVS: llvm/lib/Transforms/Scalar/SCCP.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 16 08:32:42 PST 2004
Changes in directory llvm/lib/Transforms/Scalar:
SCCP.cpp updated: 1.110 -> 1.111
---
Log message:
Do not delete dead invoke instructions!
---
Diffs of the changes: (+1 -2)
Index: llvm/lib/Transforms/Scalar/SCCP.cpp
diff -u llvm/lib/Transforms/Scalar/SCCP.cpp:1.110 llvm/lib/Transforms/Scalar/SCCP.cpp:1.111
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.110 Mon Nov 15 01:15:04 2004
+++ llvm/lib/Transforms/Scalar/SCCP.cpp Tue Nov 16 10:32:28 2004
@@ -875,7 +875,7 @@
Instruction *Inst = BI++;
if (Inst->getType() != Type::VoidTy) {
LatticeVal &IV = Values[Inst];
- if (IV.isConstant() || IV.isUndefined()) {
+ if (IV.isConstant() || IV.isUndefined() && !isa<TerminatorInst>(Inst)) {
Constant *Const;
if (IV.isConstant()) {
Const = IV.getConstant();
@@ -900,4 +900,3 @@
return MadeChanges;
}
-
More information about the llvm-commits
mailing list