[llvm] 20fa37b - [Vectorize] Fix -Wunused-variable in SLPVectorizer.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 06:47:44 PDT 2024
Author: Jie Fu
Date: 2024-09-03T21:46:42+08:00
New Revision: 20fa37bbfabca512b16a8497eb671a3bd4b5b96b
URL: https://github.com/llvm/llvm-project/commit/20fa37bbfabca512b16a8497eb671a3bd4b5b96b
DIFF: https://github.com/llvm/llvm-project/commit/20fa37bbfabca512b16a8497eb671a3bd4b5b96b.diff
LOG: [Vectorize] Fix -Wunused-variable in SLPVectorizer.cpp (NFC)
/llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:10310:26:
error: unused variable 'isExtractSubvectorMask' [-Werror,-Wunused-variable]
bool isExtractSubvectorMask =
^
1 error generated.
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 e6a0e9b458966b..5c37c2fdd2de3e 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -10307,7 +10307,7 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
"Not supported shufflevector usage.");
auto *SV = cast<ShuffleVectorInst>(V);
int Index;
- bool isExtractSubvectorMask =
+ [[maybe_unused]] bool isExtractSubvectorMask =
SV->isExtractSubvectorMask(Index);
assert(isExtractSubvectorMask &&
"Not supported shufflevector usage.");
More information about the llvm-commits
mailing list