[llvm] cc17e93 - [SLP][NFC]Remove unused variables, NFC.

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 16:56:24 PST 2023


Author: Alexey Bataev
Date: 2023-01-06T16:55:54-08:00
New Revision: cc17e93178ec97a676f6e146cca4be93cfde1909

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

LOG: [SLP][NFC]Remove unused variables, NFC.

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 ff9cc3e40fd7..e7c45c5b3753 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -6423,7 +6423,7 @@ class BaseShuffleAnalysis {
               .all();
       if (!IsOp1Undef && !IsOp2Undef) {
         // Update mask and mark undef elems.
-        for (auto [Idx, I] : enumerate(Mask)) {
+        for (int &I : Mask) {
           if (I == UndefMaskElem)
             continue;
           if (SV->getMaskValue(I % SV->getShuffleMask().size()) ==


        


More information about the llvm-commits mailing list