Skip to content

Commit

Permalink
[LoopVectorize] Silence unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k committed Sep 19, 2024
1 parent e762d4d commit 57777a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 57777a5

Please sign in to comment.