HomePhabricator

Specify branch probabilities for callbr dests

Authored by void on Mar 11 2020, 5:07 PM.

Description

Specify branch probabilities for callbr dests

Summary:
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.

Reviewers: nickdesaulniers

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72656

Details

Committed
voidMar 11 2020, 8:33 PM
Differential Revision
D72656: Specify branch probabilities for callbr dests
Parents
rGc4cbc5806218: [NFC][PowerPC] Add a new MIR file te test ppc-early-ret pass
Branches
Unknown
Tags
Unknown