summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-01-08 03:49:59 +0000
committerXinliang David Li <davidxl@google.com>2016-01-08 03:49:59 +0000
commit51dc04cff25c5f9ab97dfa88fdd81566302fd349 (patch)
tree9df0beb2024c9f6ea7d69ea44a152797045d7869 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent652b97bcf7eb2c7d0ac118401581ff131051b65d (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud