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:
Nikita Popov 2020-04-01 20:10:11 +02:00
parent 2a77544ad5
commit 50a3e8738a
1 changed files with 0 additions and 1 deletions

View File

@ -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);
}
}