[PATCH] D73728: [SCEV] SCEVExpander::isHighCostExpansionHelper(): cost-model add/mul
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 21:23:27 PST 2020
mkazantsev added inline comments.
================
Comment at: llvm/lib/Analysis/ScalarEvolutionExpander.cpp:2247
+ continue;
+ BudgetRemaining -= PairCost;
+ }
----------------
mkazantsev wrote:
> Just a suggestion, feel free to ignore: break if `BudgetRemaining` goes below zero in the loop to save time processing really huge SCEVs with many operands.
Or actually nvm, I guess it should be handled inside the helper.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73728/new/
https://reviews.llvm.org/D73728
More information about the llvm-commits
mailing list