From 11a09af76d11ad5a9f1f95b561112af17ff81f80 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Fri, 20 May 2022 17:11:18 +0200 Subject: [PATCH] Fix an unused variable warning in no-asserts build mode --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index ca9345f..ab556d6 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -6718,6 +6718,7 @@ static T *performExtractsShuffleAction( Mask[Idx] = (Res.second ? Idx : Mask[Idx]) + VF; } auto *V = ValueSelect::get(Base); + (void)V; assert((!V || GetVF(V) == Mask.size()) && "Expected base vector of VF number of elements."); Prev = Action(Mask, {nullptr, Res.first}); -- 2.7.4