HomePhabricator

[SamplePGO] Keeping prof metadata for IndirectBrInst

Authored by spupyrev on Mar 30 2021, 10:38 AM.

Description

[SamplePGO] Keeping prof metadata for IndirectBrInst

Currently prof metadata with branch counts is added only for BranchInst and SwitchInst, but not for IndirectBrInst. As a result, BPI/BFI make incorrect inferences for indirect branches, which can be very hot.
This diff adds metadata for IndirectBrInst, in addition to BranchInst and SwitchInst.

Reviewed By: wmi, wenlei

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

Details

Committed
wenleiMar 30 2021, 10:44 AM
Reviewer
wmi
Differential Revision
D99550: keeping prof metadata for IndirectBrInst
Parents
rG3e3fc431dfe4: [CSSPGO] Top-down processing order based on full profile.
Branches
Unknown
Tags
Unknown