[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 5 16:43:01 PST 2002
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.66 -> 1.67
---
Log message:
Fix bug: 2002-12-05-MissedConstProp.ll pointed out by Casey Carter
---
Diffs of the changes:
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.66 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.67
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.66 Fri Nov 8 18:49:43 2002
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Thu Dec 5 16:41:53 2002
@@ -792,7 +792,8 @@
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
if (Instruction *Op = dyn_cast<Instruction>(I->getOperand(i)))
WorkList.push_back(Op);
- I->replaceAllUsesWith(C);
+ ReplaceInstUsesWith(*I, C);
+
++NumConstProp;
BasicBlock::iterator BBI = I;
if (dceInstruction(BBI)) {
More information about the llvm-commits
mailing list