diff options
author | Bob Wilson <bob.wilson@apple.com> | 2014-03-06 04:55:41 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2014-03-06 04:55:41 +0000 |
commit | da1ebedeea4314d92e6688da36f0e6ea66eb3dd6 (patch) | |
tree | a45063de92e7b5423aa7cb48c7b99643d6c25dac /llvm/lib/Support/SourceMgr.cpp | |
parent | d0b7824ece029ca267adf55336ea9ace04b4b32f (diff) | |
download | llvm-da1ebedeea4314d92e6688da36f0e6ea66eb3dd6.zip llvm-da1ebedeea4314d92e6688da36f0e6ea66eb3dd6.tar.gz llvm-da1ebedeea4314d92e6688da36f0e6ea66eb3dd6.tar.bz2 |
PGO: Use the main file name to help distinguish functions with local linkage.
In addition, for all functions, use the name from the llvm::Function to
identify the function in the profile data. Compute that "function name",
including the file name for local functions, once when assigning the PGO
counters and store it in the CodeGenPGO class.
Move the code to add InlineHint and Cold attributes out of StartFunction(),
because the "function name" string isn't available at that point.
llvm-svn: 203075
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions