[PGO] Don't group COMDAT variables for compiler generated profile variables in ELF
authorRong Xu <xur@google.com>
Mon, 30 Sep 2019 18:11:22 +0000 (18:11 +0000)
committerRong Xu <xur@google.com>
Mon, 30 Sep 2019 18:11:22 +0000 (18:11 +0000)
commit367405008755640eac6114b18ec8c98be0cf5392
tree51ff7ce3153f83a9b81381374a5ee4dcb29621ac
parentcc382cf72736294a409a4d79db11f0cbc3cc5ae1
[PGO] Don't group COMDAT variables for compiler generated profile variables in ELF

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.

Differential Revision: https://reviews.llvm.org/D68041

llvm-svn: 373241
llvm/include/llvm/ProfileData/InstrProf.h
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