projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c41ab22
)
Fix bug: 2002-12-05-MissedConstProp.ll pointed out by Casey Carter
author
Chris Lattner
<sabre@nondot.org>
Thu, 5 Dec 2002 22:41:53 +0000
(22:41 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 5 Dec 2002 22:41:53 +0000
(22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4935
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index f57d8b1c36bfbb94dff081061c441c2f1df8584d..cdc1e3b1b0f44224bc19649e528464cf272654f1 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-792,7
+792,8
@@
bool InstCombiner::runOnFunction(Function &F) {
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)) {