[PATCH] D102818: [PGO] Don't reference functions unless value profiling is enabled

Vedant Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 20 09:53:52 PDT 2021


vsk accepted this revision.
vsk added a comment.

Thanks, lgtm as well. On Darwin, the __llvm_prf_data section is marked with S_ATTR_LIVE_SUPPORT to allow the linker to dead strip functions even if they are pointed-to by a profd global. Removing the reference altogether should yield even better size benefits.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102818



More information about the cfe-commits mailing list