[PATCH] D145516: [Inliner] Avoid excessive inlining through devirtualised calls
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 18 10:06:09 PDT 2023
aeubanks added inline comments.
================
Comment at: llvm/lib/Analysis/InlineCost.cpp:683
// threshold to get the bonus we want to apply, but don't go below zero.
- Cost -= std::max(0, CA.getThreshold() - CA.getCost());
+ Cost -= std::min(Cost, std::max(0, CA.getThreshold() - CA.getCost()));
}
----------------
is this change intended?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145516/new/
https://reviews.llvm.org/D145516
More information about the llvm-commits
mailing list