Skip to content

Commit

Permalink
[VectorCombine] Fix a spot in commit 068357d
Browse files Browse the repository at this point in the history
My previous commit leads to a crash in "Builders/sanitizer-x86_64-linux-fast"
as https://lab.llvm.org/buildbot/#/builders/5/builds/36746. And this patch
fixes it.
  • Loading branch information
benshi001 committed Sep 18, 2023
1 parent 5eabbde commit 87143ff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions llvm/lib/Transforms/Vectorize/VectorCombine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1734,15 +1734,14 @@ bool VectorCombine::run() {

// This transform works with scalable and fixed vectors
// TODO: Identify and allow other scalable transforms
if (isa<VectorType>(I.getType()))
if (isa<VectorType>(I.getType())) {
MadeChange |= scalarizeBinopOrCmp(I);
MadeChange |= scalarizeLoadExtract(I);
}

if (Opcode == Instruction::Store)
MadeChange |= foldSingleElementStore(I);

if (isa<VectorType>(I.getType()) && Opcode == Instruction::Load)
MadeChange |= scalarizeLoadExtract(I);

// If this is an early pipeline invocation of this pass, we are done.
if (TryEarlyFoldsOnly)
return;
Expand Down

0 comments on commit 87143ff

Please sign in to comment.