[PATCH] D158889: [AsmPrinter][PGO] Adds optional dumping of branch probabilities for PGO metrics.
Micah Weston via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 25 14:10:31 PDT 2023
red1bluelost created this revision.
red1bluelost added reviewers: wenlei, davidxl.
Herald added subscribers: wlei, pengfei, hiraditya.
Herald added a project: All.
red1bluelost requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
[1/2] This is the first of two patches for branch accuracy metrics.
This patch adds optional dumping of branch probabilities that can be used for collecting branch
accuracy metrics. Our metrics compare branch probabilities against execution traces. This patch is
for dumping those branch probabilities.
Testing:
New llvm test to verify branch probabilities are dumped as expected on x86_64.
Ran check-llvm with x86 enabled.
Probability dumping also testing using the scripts in the second patch of the series.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158889
Files:
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/include/llvm/MC/MCObjectFileInfo.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.h
llvm/test/Transforms/PGOProfile/asm_emit_branch_prob.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158889.553604.patch
Type: text/x-patch
Size: 12108 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230825/6edcae6a/attachment-0001.bin>
More information about the llvm-commits
mailing list