[PATCH] D15289: Avoid inlining CallSites leading to unreachable
Jun Bum Lim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 11 05:25:35 PST 2015
junbuml added a comment.
@hfinkel @AndyAyers @davidxl
As you mentioned, using BPI directly in this patch must be the right thing to do. As a first step, I will limit the use of BPI to identify blocks leading to a real cold unreachable blocks and inliner will only use BPI without any function name check. I should enhance calcUnreachableHeuristics() to consider unwinding edges of InvokeInst and exit(0).
@majnemer
Regarding threshold, base on my spec2006 runs, I'm trying to find the maximum possible value so that we can avoid inlining only when the call site leading to cold region is large enough. Hopefully, I will be able to finish my tests today.
@davidxl
For me it appears that Easwaran's change performs aggressive inlining for the hot sites based on profile data? I think my change somewhat different because it statically try to identify cold blocks and perform conservative inlining.
http://reviews.llvm.org/D15289
More information about the llvm-commits
mailing list