[llvm] 50a3e87 - Revert "[InstCombine] Erase old instruction when replacing extractelements"
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 11:11:20 PDT 2020
Author: Nikita Popov
Date: 2020-04-01T20:10:11+02:00
New Revision: 50a3e8738a90cfd4915b24c33782cf6a87216b78
URL: https://github.com/llvm/llvm-project/commit/50a3e8738a90cfd4915b24c33782cf6a87216b78
DIFF: https://github.com/llvm/llvm-project/commit/50a3e8738a90cfd4915b24c33782cf6a87216b78.diff
LOG: Revert "[InstCombine] Erase old instruction when replacing extractelements"
This reverts commit d40368fdb5e1b90e68b1078f32c283aa800238be.
llvm-clang-x86_64-expensive-checks-debian failure looks related.
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
index 1f7279fb9299..2d72696ee531 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);
}
}
More information about the llvm-commits
mailing list