forked from OSchip/llvm-project
Revert "[InstCombine] Erase old instruction when replacing extractelements"
This reverts commit d40368fdb5
.
llvm-clang-x86_64-expensive-checks-debian failure looks related.
This commit is contained in:
parent
2a77544ad5
commit
50a3e8738a
|
@ -597,7 +597,6 @@ static void replaceExtractElements(InsertElementInst *InsElt,
|
|||
auto *NewExt = ExtractElementInst::Create(WideVec, OldExt->getOperand(1));
|
||||
NewExt->insertAfter(OldExt);
|
||||
IC.replaceInstUsesWith(*OldExt, NewExt);
|
||||
IC.eraseInstFromFunction(*OldExt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue