[PATCH] D36341: Make ICP uses PSI to check for hotness.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 5 12:19:28 PDT 2017


danielcdh added a comment.

In https://reviews.llvm.org/D36341#833007, @davidxl wrote:

> This change may affect instrumentation PGO. I suspect it will greatly increase count threshold which may negatively affect performance. For instance some not so hot targets have small function body which is always good candidate to inline (after ICP).


Agree. But why would we care about those not-so-hot targets? OTOH, there is also possibility that a not-so-hot target get promoted and inlined to increase the hot-caller's size to further prevent it from being inlined into its caller.

I'll do a round of testing on this change to see the impact on instrumentation PGO.


https://reviews.llvm.org/D36341





More information about the llvm-commits mailing list