Skip to content

Commit 57777a5

Browse files
committed
[LoopVectorize] Silence unused variable warning
1 parent e762d4d commit 57777a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,8 @@ bool LoopVectorizationLegality::isVectorizableEarlyExitLoop() {
15751575
LLVM_DEBUG(
15761576
dbgs()
15771577
<< "LV: Found an early exit. Retrying with speculative exit count.\n");
1578-
const SCEV *SpecExitCount = PSE.getSymbolicMaxBackedgeTakenCount();
1578+
[[maybe_unused]] const SCEV *SpecExitCount =
1579+
PSE.getSymbolicMaxBackedgeTakenCount();
15791580
assert(!isa<SCEVCouldNotCompute>(SpecExitCount) &&
15801581
"Failed to get symbolic expression for backedge taken count");
15811582

0 commit comments

Comments
 (0)