Skip to content

Commit 119b0f3

Browse files
committed
Revert "[SLP]Fix PR69196: Instruction does not dominate all uses"
This reverts commit 8e2b2c4 to fix a crash reported in https://lab.llvm.org/buildbot/#/builders/230/builds/19993.
1 parent 750c8e3 commit 119b0f3

File tree

2 files changed

+1
-46
lines changed

2 files changed

+1
-46
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11214,7 +11214,7 @@ Value *BoUpSLP::vectorizeTree(
1121411214
TE->VectorizedValue = nullptr;
1121511215
auto *UserI =
1121611216
cast<Instruction>(TE->UserTreeIndices.front().UserTE->VectorizedValue);
11217-
Builder.SetInsertPoint(UserI);
11217+
Builder.SetInsertPoint(PrevVec);
1121811218
Builder.SetCurrentDebugLocation(UserI->getDebugLoc());
1121911219
Value *Vec = vectorizeTree(TE);
1122011220
PrevVec->replaceAllUsesWith(Vec);

llvm/test/Transforms/SLPVectorizer/X86/non-scheduled-inst-reused-as-last-inst.ll

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)