Skip to content

Commit

Permalink
Revert "[SLP]Fix PR69196: Instruction does not dominate all uses"
Browse files Browse the repository at this point in the history
This reverts commit 8e2b2c4 to fix
a crash reported in https://lab.llvm.org/buildbot/#/builders/230/builds/19993.
  • Loading branch information
alexey-bataev committed Oct 16, 2023
1 parent 750c8e3 commit 119b0f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11214,7 +11214,7 @@ Value *BoUpSLP::vectorizeTree(
TE->VectorizedValue = nullptr;
auto *UserI =
cast<Instruction>(TE->UserTreeIndices.front().UserTE->VectorizedValue);
Builder.SetInsertPoint(UserI);
Builder.SetInsertPoint(PrevVec);
Builder.SetCurrentDebugLocation(UserI->getDebugLoc());
Value *Vec = vectorizeTree(TE);
PrevVec->replaceAllUsesWith(Vec);
Expand Down

This file was deleted.

0 comments on commit 119b0f3

Please sign in to comment.