diff options
author | Rong Xu <xur@google.com> | 2017-08-23 21:36:02 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2017-08-23 21:36:02 +0000 |
commit | 15848e597710e1d62ee4165495871861ac923aef (patch) | |
tree | 2b6736345e442675bbd9620b90495826a6970c18 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 8040a215c901f28cd29ed516254607532a61b06b (diff) | |
download | llvm-15848e597710e1d62ee4165495871861ac923aef.zip llvm-15848e597710e1d62ee4165495871861ac923aef.tar.gz llvm-15848e597710e1d62ee4165495871861ac923aef.tar.bz2 |
[PGO] Set edge weights for indirectbr instruction with profile counts
Current PGO only annotates the edge weight for branch and switch instructions
with profile counts. We should also annotate the indirectbr instruction as
all the information is there. This patch enables the annotating for indirectbr
instructions. Also uses this annotation in branch probability analysis.
Differential Revision: https://reviews.llvm.org/D37074
llvm-svn: 311604
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions