[PATCH] D80186: [Inliner] Update !associated metadata during inlining

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 14:05:51 PDT 2020


pcc added a comment.

Yeah. Thinking about it more, you may consider a different `!associated` scheme for the `__prof*_` globals.

- `__profc_*` and `__profn_*` are associated with a dummy global (to allow the sections to be GC'd).
- `__profd_*` is associated with the corresponding `__profc_*` section.

Now no special rules are required for inlining. `__profc_*` is kept alive via the references in the functions, `__profd_` is kept alive via `!associated` and `__profn_*` is kept alive by direct reference.


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

https://reviews.llvm.org/D80186





More information about the llvm-commits mailing list