[PATCH] D73705: [NFC][SCEV] Piping to pass new SCEVCheapExpansionBudget option into SCEVExpander::isHighCostExpansionHelper()
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 02:08:42 PST 2020
mkazantsev 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,
----------------
Should it be unsigned?
================
Comment at: llvm/include/llvm/Analysis/ScalarEvolutionExpander.h:331
bool isHighCostExpansionHelper(const SCEV *S, Loop *L,
- const Instruction *At,
+ const Instruction *At, int &BudgetRemaining,
const TargetTransformInfo *TTI,
----------------
Please make all budgets either signed or unsigned. This should be consistent.
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