summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2017-01-10 19:30:20 +0000
committerRong Xu <xur@google.com>2017-01-10 19:30:20 +0000
commitef1adad9387f669feb9179df43a987187f74dbb9 (patch)
tree41d1d140d3e892ff553aeea4fb6e73efa2f7d9ac /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parentd0114fc1ddeedb37affbdcf2c6ad20d216bbb89f (diff)
downloadbcm5719-llvm-ef1adad9387f669feb9179df43a987187f74dbb9.tar.gz
bcm5719-llvm-ef1adad9387f669feb9179df43a987187f74dbb9.zip
[PGO] Turn off comdat renaming in IR PGO by default
Summary: In IR PGO we append the function hash to comdat functions to avoid the potential hash mismatch. This turns out not legal in some cases: if the comdat function is address-taken and used in comparison. Renaming changes the semantic. This patch turns off comdat renaming by default. To alleviate the hash mismatch issue, we now rename the profile variable for comdat functions. Profile allows co-existing multiple versions of profiles with different hash value. The inlined copy will always has the correct profile counter. The out-of-line copy might not have the correct count. But we will not have the bogus mismatch warning. Reviewers: davidxl Subscribers: llvm-commits, xur Differential Revision: https://reviews.llvm.org/D28416 llvm-svn: 291588
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud