aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnroll.cpp
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2015-09-23 22:40:45 +0000
committerWei Mi <wmi@google.com>2015-09-23 22:40:45 +0000
commit3cc9204a520da14551db7c860a45a259cce0df06 (patch)
treebb2c3e9879e2c2ecf0903da103ee76d246d01050 /llvm/lib/Transforms/Utils/LoopUnroll.cpp
parent13e8bbc23735453bf0cbdf5c7c07cb60419ed072 (diff)
downloadllvm-3cc9204a520da14551db7c860a45a259cce0df06.zip
llvm-3cc9204a520da14551db7c860a45a259cce0df06.tar.gz
llvm-3cc9204a520da14551db7c860a45a259cce0df06.tar.bz2
Put profile variables of COMDAT functions to it's own COMDAT group.
In -fprofile-instr-generate compilation, to remove the redundant profile variables for the COMDAT functions, these variables are placed in the same COMDAT group as its associated function. This way when the COMDAT function is not picked by the linker, those profile variables will also not be output in the final binary. This may cause warning when mix link objects built w and wo -fprofile-instr-generate. This patch puts the profile variables for COMDAT functions to its own COMDAT group to avoid the problem. Patch by xur. Differential Revision: http://reviews.llvm.org/D12248 llvm-svn: 248440
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnroll.cpp')
0 files changed, 0 insertions, 0 deletions