diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-04-05 16:02:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-04-05 16:02:41 +0000 |
| commit | 4d1fcf1dcddef78152213116467071d0c141dafa (patch) | |
| tree | f4f20592ed9416c84d79b6683b70320002d2c5c9 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
| parent | 8953b90aaad4e2dbce5a44b7c7d9e1825fa21868 (diff) | |
| download | bcm5719-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.cpp | 2 |
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() && |

