summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-05 16:02:41 +0000
committerChris Lattner <sabre@nondot.org>2004-04-05 16:02:41 +0000
commit4d1fcf1dcddef78152213116467071d0c141dafa (patch)
treef4f20592ed9416c84d79b6683b70320002d2c5c9 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp
parent8953b90aaad4e2dbce5a44b7c7d9e1825fa21868 (diff)
downloadbcm5719-llvm-4d1fcf1dcddef78152213116467071d0c141dafa.tar.gz
bcm5719-llvm-4d1fcf1dcddef78152213116467071d0c141dafa.zip
Fix a bug in yesterdays checkins which broke siod. siod is a great testcase! :)
llvm-svn: 12659
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index aa260da9b54..18da86a0e21 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/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() &&
OpenPOWER on IntegriCloud