forked from OSchip/llvm-project
Revert "[NFC] Remove shadowed variable in InnerLoopVectorizer::createInductionVariable"
This reverts commit 9dde514162
.
This commit is contained in:
parent
c3d3defd11
commit
9de63367d8
|
@ -3071,13 +3071,7 @@ PHINode *InnerLoopVectorizer::createInductionVariable(Loop *L, Value *Start,
|
|||
if (!Latch)
|
||||
Latch = Header;
|
||||
|
||||
// Set the Builder to a valid Block pointer as the existing one could get
|
||||
// deleted below.
|
||||
Builder.SetInsertPoint(&*LoopVectorBody->getFirstInsertionPt());
|
||||
|
||||
IRBuilder<>::InsertPointGuard Guard(Builder);
|
||||
Builder.SetInsertPoint(&*Header->getFirstInsertionPt());
|
||||
|
||||
IRBuilder<> Builder(&*Header->getFirstInsertionPt());
|
||||
Instruction *OldInst = getDebugLocFromInstOrOperands(OldInduction);
|
||||
setDebugLocFromInst(Builder, OldInst);
|
||||
auto *Induction = Builder.CreatePHI(Start->getType(), 2, "index");
|
||||
|
|
Loading…
Reference in New Issue