[llvm] 11a09af - Fix an unused variable warning in no-asserts build mode
Dmitri Gribenko via llvm-commits
llvm-commits at lists.llvm.org
Fri May 20 08:12:08 PDT 2022
Author: Dmitri Gribenko
Date: 2022-05-20T17:11:58+02:00
New Revision: 11a09af76d11ad5a9f1f95b561112af17ff81f80
URL: https://github.com/llvm/llvm-project/commit/11a09af76d11ad5a9f1f95b561112af17ff81f80
DIFF: https://github.com/llvm/llvm-project/commit/11a09af76d11ad5a9f1f95b561112af17ff81f80.diff
LOG: Fix an unused variable warning in no-asserts build mode
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 ca9345f5233e4..ab556d699f163 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<T *>(Base);
+ (void)V;
assert((!V || GetVF(V) == Mask.size()) &&
"Expected base vector of VF number of elements.");
Prev = Action(Mask, {nullptr, Res.first});
More information about the llvm-commits
mailing list