From: Chris Lattner Date: Mon, 5 Apr 2004 16:02:41 +0000 (+0000) Subject: Fix a bug in yesterdays checkins which broke siod. siod is a great testcase! :) X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=548f47efb0f10e4298ae437176a8f773e76db042;p=oota-llvm.git Fix a bug in yesterdays checkins which broke siod. siod is a great testcase! :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12659 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index aa260da9b54..18da86a0e21 100644 --- 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(Sum)); } GEP.setOperand(0, SrcGEPOperands[0]); GEP.setOperand(1, Sum); - WorkList.push_back(cast(Sum)); return &GEP; } else if (isa(*GEP.idx_begin()) && cast(*GEP.idx_begin())->isNullValue() &&