diff options
author | Xinliang David Li <davidxl@google.com> | 2016-01-08 03:49:59 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-01-08 03:49:59 +0000 |
commit | 51dc04cff25c5f9ab97dfa88fdd81566302fd349 (patch) | |
tree | 9df0beb2024c9f6ea7d69ea44a152797045d7869 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 652b97bcf7eb2c7d0ac118401581ff131051b65d (diff) | |
download | bcm5719-llvm-51dc04cff25c5f9ab97dfa88fdd81566302fd349.tar.gz bcm5719-llvm-51dc04cff25c5f9ab97dfa88fdd81566302fd349.zip |
[PGO] Fix a bug in InstProfWriter addRecord
For a new record with weight != 1, only edge profiling
counters are scaled, VP data is not properly scaled.
This patch refactors the code and fixes the problem.
Also added sort by count interface (for follow up patch).
llvm-svn: 257143
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions