From 57777a5066a6b872f7576a81f021d18899595e38 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 19 Sep 2024 11:01:58 +0200 Subject: [PATCH] [LoopVectorize] Silence unused variable warning --- llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(SpecExitCount) && "Failed to get symbolic expression for backedge taken count");