[PATCH] D68041: [PGO] Don't group COMDAT variables for compiler generated profile variables in ELF

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 11:31:45 PDT 2019


xur created this revision.
xur added reviewers: rnk, davidxl.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

With this patch, compiler generated profile variables will have its own COMDAT name for ELF format, which syncs the behavior with COFF.
Tested with clang PGO bootstrap. This shows a modest reduction in object sizes in ELF format.


https://reviews.llvm.org/D68041

Files:
  llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
  llvm/test/Instrumentation/InstrProfiling/PR23499.ll
  llvm/test/Instrumentation/InstrProfiling/comdat.ll
  llvm/test/Instrumentation/InstrProfiling/linkage.ll
  llvm/test/Transforms/PGOProfile/comdat_internal.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68041.221810.patch
Type: text/x-patch
Size: 6979 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190925/46e311eb/attachment-0001.bin>


More information about the llvm-commits mailing list