[llvm] 2f2ca30 - Fix an unused variable warning in no-asserts build mode
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 10:53:58 PDT 2022
Author: Benjamin Kramer
Date: 2022-05-23T19:53:40+02:00
New Revision: 2f2ca30d0abacda7ffd2dd71680e66161cffcbe3
URL: https://github.com/llvm/llvm-project/commit/2f2ca30d0abacda7ffd2dd71680e66161cffcbe3
DIFF: https://github.com/llvm/llvm-project/commit/2f2ca30d0abacda7ffd2dd71680e66161cffcbe3.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 fc0e7d8615110..4df7aaca73623 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