Files
clang-p2996/llvm/test/Transforms/SampleProfile/Inputs/profile-topdown-order.prof
Hongtao Yu de40f6d623 [CSSPGO] Process functions in a top-down order on a dynamic call graph.
Functions are currently processed by the sample profiler loader in a top-down order defined by the static call graph. The order is being adjusted to be a top-down order based on the input context-sensitive profile. One benefit is that the processing order of caller and callee in one SCC would follow the context order in the profile to favor more inlining. Another benefit is that the processing order of caller and callee through an indirect call (which is not on the static call graph) can be honored which in turn allows for more inlining.

The profile top-down order for SCC is also extended to support non-CS profiles.

Two switches `-mllvm -use-profile-indirect-call-edges` and `-mllvm -use-profile-top-down-order` are being introduced.

Reviewed By: wmi

Differential Revision: https://reviews.llvm.org/D95988
2021-02-11 12:36:59 -08:00

37 lines
443 B
Plaintext

_Z8funcLeafi:500853:20
0: 15
1: 15
3: 74946
10: 23324
15: 11
main:154:0
2: 12
3: 18 _Z5funcAi:11
3.1: 18 _Z5funcBi:19
main:154:12
2: 12
3: 10 _Z5funcAi:7
3.1: 10 _Z5funcBi:11
_Z5funcBi:120:19
0: 19
1: 19 _Z8funcLeafi:20
3: 12
_Z5funcBi:120:3
0: 3
1: 3
_Z5funcBi:120:10
0: 10
1: 10
_Z5funcAi:99:11
0: 10
1: _Z8funcLeafi:40
0: 6
1: 6
3: 2
15: 23
2: 315608 _Z3fibi:362839
0: 315608
1: 6
3: 287884
3: 24