[PATCH] D73705: [NFC][SCEV] Piping to pass new SCEVCheapExpansionBudget option into SCEVExpander::isHighCostExpansionHelper()
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 02:17:38 PST 2020
lebedev.ri marked 3 inline comments as done.
lebedev.ri added inline comments.
================
Comment at: llvm/include/llvm/Analysis/ScalarEvolutionExpander.h:186
SmallPtrSet<const SCEV *, 8> Processed;
- return isHighCostExpansionHelper(Expr, L, At, TTI, Processed);
+ int BudgetRemaining = Budget * TargetTransformInfo::TCC_Basic;
+ return isHighCostExpansionHelper(Expr, L, At, BudgetRemaining, TTI,
----------------
mkazantsev wrote:
> Should it be unsigned?
Absolutely not.
For signed, it is obvious how to check that we've out of budget (it became negative),
while for unsigned i would need to be checking the remaining budget vs it's adjustment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73705/new/
https://reviews.llvm.org/D73705
More information about the llvm-commits
mailing list