[PATCH] D72656: Specify branch probabilities for callbr dests
Bill Wendling via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 14:58:19 PST 2020
void created this revision.
void added a reviewer: nickdesaulniers.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
callbr's indirect branches aren't expected to be taken, so reduce their
probabilities to 0 while increasing the default destination to 1. This
allows some code improvements through block placement.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72656
Files:
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/CodeGen/AArch64/callbr-asm-label.ll
llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
llvm/test/CodeGen/X86/callbr-asm-branch-folding.ll
llvm/test/CodeGen/X86/callbr-asm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72656.237789.patch
Type: text/x-patch
Size: 4676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200113/84548241/attachment.bin>
More information about the llvm-commits
mailing list