aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2018-04-02 16:57:00 +0000
committerRong Xu <xur@google.com>2018-04-02 16:57:00 +0000
commit95ab7582f0bb2b04eba6cbb612f834962cfe16e6 (patch)
treec18d57ce49bba5b9b7efa3769ecf625a58b18ed7 /clang/lib/Frontend/CompilerInvocation.cpp
parentb0316d96ae563c8e6473952d3213e833961c81ff (diff)
downloadllvm-95ab7582f0bb2b04eba6cbb612f834962cfe16e6.zip
llvm-95ab7582f0bb2b04eba6cbb612f834962cfe16e6.tar.gz
llvm-95ab7582f0bb2b04eba6cbb612f834962cfe16e6.tar.bz2
[profile] Fix value profile runtime merging issues
This patch fixes the following issues: (1) The strong definition of the merge hook function was not working which breaks the online value profile merging. This patch removes the weak attribute of VPMergeHook and assigns the value dynamically. (2) Truncate the proifle file so that we don't have garbage data at the end of the file. (3) Add new __llvm_profile_instrument_target_value() interface to do the value profile update in batch. This is needed as the original incremental by 1 in __llvm_profile_instrument_target() is too slow for online merge. Differential Revision: https://reviews.llvm.org/D44847 llvm-svn: 328987
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions