[llvm] 57777a5 - [LoopVectorize] Silence unused variable warning
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 02:02:30 PDT 2024
Author: Benjamin Kramer
Date: 2024-09-19T11:01:58+02:00
New Revision: 57777a5066a6b872f7576a81f021d18899595e38
URL: https://github.com/llvm/llvm-project/commit/57777a5066a6b872f7576a81f021d18899595e38
DIFF: https://github.com/llvm/llvm-project/commit/57777a5066a6b872f7576a81f021d18899595e38.diff
LOG: [LoopVectorize] Silence unused variable warning
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
index 9645bd877fbf5e..a4787483813a9a 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
@@ -1575,7 +1575,8 @@ bool LoopVectorizationLegality::isVectorizableEarlyExitLoop() {
LLVM_DEBUG(
dbgs()
<< "LV: Found an early exit. Retrying with speculative exit count.\n");
- const SCEV *SpecExitCount = PSE.getSymbolicMaxBackedgeTakenCount();
+ [[maybe_unused]] const SCEV *SpecExitCount =
+ PSE.getSymbolicMaxBackedgeTakenCount();
assert(!isa<SCEVCouldNotCompute>(SpecExitCount) &&
"Failed to get symbolic expression for backedge taken count");
More information about the llvm-commits
mailing list