diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-01 20:10:11 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-01 20:10:11 +0200 |
commit | 50a3e8738a90cfd4915b24c33782cf6a87216b78 (patch) | |
tree | 4b30e00fcc0c0c4a890dadf4753f017d87c40f8d | |
parent | 2a77544ad5911a38f81c0300385033fced1cc66d (diff) | |
download | llvm-50a3e8738a90cfd4915b24c33782cf6a87216b78.zip llvm-50a3e8738a90cfd4915b24c33782cf6a87216b78.tar.gz llvm-50a3e8738a90cfd4915b24c33782cf6a87216b78.tar.bz2 |
Revert "[InstCombine] Erase old instruction when replacing extractelements"
This reverts commit d40368fdb5e1b90e68b1078f32c283aa800238be.
llvm-clang-x86_64-expensive-checks-debian failure looks related.
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp index 1f7279f..2d72696 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp @@ -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); } } |