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:
15a76c0
)
Fix a bug in yesterdays checkins which broke siod. siod is a great testcase! :)
author
Chris Lattner
<sabre@nondot.org>
Mon, 5 Apr 2004 16:02:41 +0000
(16:02 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 5 Apr 2004 16:02:41 +0000
(16:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12659
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 aa260da9b54a8b080bc47d4ba9fbbf2f80d8442b..18da86a0e219d48972afba48dd9a855eca1076c9 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-2422,10
+2422,10
@@
Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
}
Sum = BinaryOperator::create(Instruction::Add, SO1, GO1,
GEP.getOperand(0)->getName()+".sum", &GEP);
+ WorkList.push_back(cast<Instruction>(Sum));
}
GEP.setOperand(0, SrcGEPOperands[0]);
GEP.setOperand(1, Sum);
- WorkList.push_back(cast<Instruction>(Sum));
return &GEP;
} else if (isa<Constant>(*GEP.idx_begin()) &&
cast<Constant>(*GEP.idx_begin())->isNullValue() &&