[llvm] 1589891 - [SLP] change poorly named variable; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 04:59:43 PDT 2020


Author: Sanjay Patel
Date: 2020-09-16T07:59:31-04:00
New Revision: 158989184e9c6bfec25cefe55022dd41894a54dd

URL: https://github.com/llvm/llvm-project/commit/158989184e9c6bfec25cefe55022dd41894a54dd
DIFF: https://github.com/llvm/llvm-project/commit/158989184e9c6bfec25cefe55022dd41894a54dd.diff

LOG: [SLP] change poorly named variable; NFC

'V' shadows a function argument.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 3347419077e3..7d85cf5f9bdd 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -6844,8 +6844,9 @@ class HorizontalReduction {
     // so set it as externally used to prevent it from being deleted.
     ExternallyUsedValues[ReductionRoot];
     SmallVector<Value *, 16> IgnoreList;
-    for (auto &V : ReductionOps)
-      IgnoreList.append(V.begin(), V.end());
+    for (ReductionOpsType &RdxOp : ReductionOps)
+      IgnoreList.append(RdxOp.begin(), RdxOp.end());
+
     while (i < NumReducedVals - ReduxWidth + 1 && ReduxWidth > 2) {
       auto VL = makeArrayRef(&ReducedVals[i], ReduxWidth);
       V.buildTree(VL, ExternallyUsedValues, IgnoreList);


        


More information about the llvm-commits mailing list