[SLP][NFC]Remove unused variables, NFC.
authorAlexey Bataev <a.bataev@outlook.com>
Sat, 7 Jan 2023 00:55:54 +0000 (16:55 -0800)
committerAlexey Bataev <a.bataev@outlook.com>
Sat, 7 Jan 2023 00:55:54 +0000 (16:55 -0800)
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

index ff9cc3e..e7c45c5 100644 (file)
@@ -6423,7 +6423,7 @@ protected:
               .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()) ==