mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[SCEV] Fix an unused variable in -DLLVM_ENABLE_ASSERTIONS=off build
This commit is contained in:
parent
c373bb64ff
commit
07bdca3215
@ -2382,8 +2382,8 @@ bool SCEVExpander::isHighCostExpansionHelper(
|
||||
costAndCollectOperands<SCEVNAryExpr>(WorkItem, TTI, CostKind, Worklist);
|
||||
BudgetRemaining -= Cost;
|
||||
return BudgetRemaining < 0;
|
||||
} else if (const auto *NAry = dyn_cast<SCEVAddRecExpr>(S)) {
|
||||
assert(NAry->getNumOperands() >= 2 &&
|
||||
} else if (isa<SCEVAddRecExpr>(S)) {
|
||||
assert(cast<SCEVAddRecExpr>(S)->getNumOperands() >= 2 &&
|
||||
"Polynomial should be at least linear");
|
||||
BudgetRemaining -= costAndCollectOperands<SCEVAddRecExpr>(
|
||||
WorkItem, TTI, CostKind, Worklist);
|
||||
|
Loading…
Reference in New Issue
Block a user