[PATCH] D104028: [WIP] Use standard priority queue to order inlining
Chuanqi Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 15 01:43:50 PDT 2021
ChuanqiXu added a comment.
In D104028#2818832 <https://reviews.llvm.org/D104028#2818832>, @taolq wrote:
> Thanks for your comments. In this patch, callsites are sorted by callee size (see PriorityInlindeOrder::evaluate())
Sorry, I missed that.
> That sounds great! I would like to use more elaborate priority functions in the future, e.g. consider both inline costs, callee size, and other profile.
The main point is the regression. Calculate the inline cost for every callsite is costful. In other words, it grows the compile-time without significant improvements. (We could discuss this in other threads further, it may be irrelevant)
> It is defined in Inliner.cpp, because it is an abstraction meant for the inliner.
I am fine to remain it in Inliner.cpp. But the reason may be a little weird for me since there many components of inlining didn't be put in inliner.cpp.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104028/new/
https://reviews.llvm.org/D104028
More information about the llvm-commits
mailing list