[PATCH] D39869: [Inliner] Inline through indirect call sites having !callees metadata
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 8 10:05:26 PST 2018
davidxl added a comment.
I think 'tryToPromote' method should be moved to the indirect call promotion pass so that the callback to inline cost/benefit is exposed there (a more general cost/benefit model needs to be developed for indirect call promotion). Initially, I think we can limit the use of the getInlineCost callback to cases where profile data is not available, this will achieve what this patch is doing without affecting existing promotion heuristics.
https://reviews.llvm.org/D39869
More information about the llvm-commits
mailing list