From: Alexey Bataev Date: Sat, 7 Jan 2023 00:55:54 +0000 (-0800) Subject: [SLP][NFC]Remove unused variables, NFC. X-Git-Tag: upstream/17.0.6~21835 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc17e93178ec97a676f6e146cca4be93cfde1909;p=platform%2Fupstream%2Fllvm.git [SLP][NFC]Remove unused variables, NFC. --- diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index ff9cc3e..e7c45c5 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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()) ==