File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -6796,14 +6796,10 @@ class HorizontalReduction {
6796
6796
return true ;
6797
6797
}
6798
6798
6799
- // / Attempt to vectorize the tree found by
6800
- // / matchAssociativeReduction.
6799
+ // / Attempt to vectorize the tree found by matchAssociativeReduction.
6801
6800
bool tryToReduce (BoUpSLP &V, TargetTransformInfo *TTI) {
6802
- if (ReducedVals.empty ())
6803
- return false ;
6804
-
6805
- // If there is a sufficient number of reduction values, reduce
6806
- // to a nearby power-of-2. Can safely generate oversized
6801
+ // If there are a sufficient number of reduction values, reduce
6802
+ // to a nearby power-of-2. We can safely generate oversized
6807
6803
// vectors and rely on the backend to split them to legal sizes.
6808
6804
unsigned NumReducedVals = ReducedVals.size ();
6809
6805
if (NumReducedVals < 4 )
You can’t perform that action at this time.
0 commit comments