[PATCH] D104060: Machine IR Profile

Ellis Hoag via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 10 16:44:08 PDT 2021


ellis added a comment.

> In the MIP description, it mentions that the counter size is 1 byte. This is good enough for coverage testing, but not enough to track hotness.

The counter is 1 byte when only function coverage is enabled (`-fmachine-profile-function-coverage`). There is another mode (`-fmachine-profile-call-graph`) which has two 4 byte counters, one for call counts, and the other for call order, which can be used for hotness.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104060/new/

https://reviews.llvm.org/D104060



More information about the llvm-commits mailing list