Files
clang-p2996/llvm/test/Transforms/SampleProfile/Inputs/pseudo-probe-profile-metadata.prof
spupyrev 22998738e8 [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
2021-03-30 10:44:48 -07:00

9 lines
84 B
Plaintext

foo:3200:13
1: 6
2: 86
3: 8212
4: 1
5: 17747
6: 5
!CFGChecksum: 158517001042