aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2016-10-25 21:47:24 +0000
committerRong Xu <xur@google.com>2016-10-25 21:47:24 +0000
commit33308f92ebef0a0848997f912659c50ddf647383 (patch)
tree142670fd3c0522f394dd02b2a21fce001a94a85f /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentfa2412b2e706d18c1afb7f70f34353baebb9c0ba (diff)
downloadllvm-33308f92ebef0a0848997f912659c50ddf647383.zip
llvm-33308f92ebef0a0848997f912659c50ddf647383.tar.gz
llvm-33308f92ebef0a0848997f912659c50ddf647383.tar.bz2
[PGO] Fix select instruction annotation
Summary: Select instruction annotation in IR PGO uses the edge count to infer the branch count. It's currently placed in setInstrumentedCounts() where no all the BB counts have been computed. This leads to wrong branch weights. Move the annotation after all BB counts are populated. Reviewers: davidxl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D25961 llvm-svn: 285128
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions