[PATCH] D22368: Replace hot-callsite based heuristic to use its own threshold parameter instead of share inline-hint parameter
Dehao Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 13:26:17 PDT 2016
danielcdh added a comment.
In https://reviews.llvm.org/D22368#488605, @davidxl wrote:
> should we have a fixed cutoff threshold, or make it adaptive to the hotness ? Or more generally, make it part of the global speedup analysis (the larger the global speedup, the larger the speedup) -- which we will soon have?
I agree. But for now, the PSI interface only give use boolean value for hot/cold inquiry. How about we have this fixed cutoff in first, later when global speedup analysis is ready, we use the speedup as parameter to set the threshold?
> Another thing: PGO and autoFDO should reduce overall text size compared with O2 build, so we should also do the opposite -- if the caller has zero count (non samples with autoFDO), the threshold should be reduced.
Added cold callsite heuristic.
https://reviews.llvm.org/D22368
More information about the llvm-commits
mailing list