File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6817,9 +6817,9 @@ class HorizontalReduction {
6817
6817
Builder.setFastMathFlags (Unsafe);
6818
6818
6819
6819
BoUpSLP::ExtraValueToDebugLocsMap ExternallyUsedValues;
6820
- // The same extra argument may be used several time , so log each attempt
6820
+ // The same extra argument may be used several times , so log each attempt
6821
6821
// to use it.
6822
- for (auto &Pair : ExtraArgs) {
6822
+ for (std::pair<Instruction *, Value *> &Pair : ExtraArgs) {
6823
6823
assert (Pair.first && " DebugLoc must be set." );
6824
6824
ExternallyUsedValues[Pair.second ].push_back (Pair.first );
6825
6825
}
@@ -6844,7 +6844,7 @@ class HorizontalReduction {
6844
6844
6845
6845
unsigned i = 0 ;
6846
6846
while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2 ) {
6847
- auto VL = makeArrayRef (&ReducedVals[i], ReduxWidth);
6847
+ ArrayRef<Value *> VL = makeArrayRef (&ReducedVals[i], ReduxWidth);
6848
6848
V.buildTree (VL, ExternallyUsedValues, IgnoreList);
6849
6849
Optional<ArrayRef<unsigned >> Order = V.bestOrder ();
6850
6850
// TODO: Handle orders of size less than number of elements in the vector.
You can’t perform that action at this time.
0 commit comments