File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1734,15 +1734,14 @@ bool VectorCombine::run() {
1734
1734
1735
1735
// This transform works with scalable and fixed vectors
1736
1736
// TODO: Identify and allow other scalable transforms
1737
- if (isa<VectorType>(I.getType ()))
1737
+ if (isa<VectorType>(I.getType ())) {
1738
1738
MadeChange |= scalarizeBinopOrCmp (I);
1739
+ MadeChange |= scalarizeLoadExtract (I);
1740
+ }
1739
1741
1740
1742
if (Opcode == Instruction::Store)
1741
1743
MadeChange |= foldSingleElementStore (I);
1742
1744
1743
- if (isa<VectorType>(I.getType ()) && Opcode == Instruction::Load)
1744
- MadeChange |= scalarizeLoadExtract (I);
1745
-
1746
1745
// If this is an early pipeline invocation of this pass, we are done.
1747
1746
if (TryEarlyFoldsOnly)
1748
1747
return ;
You can’t perform that action at this time.
0 commit comments