File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
# STARTUP: Ordered 3 sections using balanced partitioning
11
11
12
- # RUN: %lld -arch arm64 -lSystem -e _main -o - %t/a.o --irpgo-profile-sort=%t/a.profdata -order_file %t/a.orderfile | llvm-nm --numeric-sort --format=just-symbols - | FileCheck %s --check-prefix=ORDERFILE
12
+ # Check that orderfiles take precedence over BP
13
+ # RUN: %lld -arch arm64 -lSystem -e _main -o - %t/a.o -order_file %t/a.orderfile --irpgo-profile-sort=%t/a.profdata | llvm-nm --numeric-sort --format=just-symbols - | FileCheck %s --check-prefix=ORDERFILE
14
+ # RUN: %lld -arch arm64 -lSystem -e _main -o - %t/a.o -order_file %t/a.orderfile --compression-sort=both | llvm-nm --numeric-sort --format=just-symbols - | FileCheck %s --check-prefix=ORDERFILE
13
15
16
+ # Functions
14
17
# ORDERFILE: A
15
18
# ORDERFILE: F
16
19
# ORDERFILE: E
17
20
# ORDERFILE: D
18
21
# ORDERFILE-DAG: _main
19
22
# ORDERFILE-DAG: _B
20
23
# ORDERFILE-DAG: l_C
24
+
25
+ # Data
26
+ # ORDERFILE: s3
27
+ # ORDERFILE: r3
28
+ # ORDERFILE: r2
21
29
# ORDERFILE-DAG: s1
22
30
# ORDERFILE-DAG: s2
23
31
# ORDERFILE-DAG: r1
24
- # ORDERFILE-DAG: r2
32
+ # ORDERFILE-DAG: r4
25
33
26
34
# RUN: %lld -arch arm64 -lSystem -e _main -o %t/a.out %t/a.o --verbose-bp-section-orderer --compression-sort=function 2>&1 | FileCheck %s --check-prefix=COMPRESSION-FUNC
27
35
# RUN: %lld -arch arm64 -lSystem -e _main -o %t/a.out %t/a.o --verbose-bp-section-orderer --compression-sort=data 2>&1 | FileCheck %s --check-prefix=COMPRESSION-DATA
28
36
# RUN: %lld -arch arm64 -lSystem -e _main -o %t/a.out %t/a.o --verbose-bp-section-orderer --compression-sort=both 2>&1 | FileCheck %s --check-prefix=COMPRESSION-BOTH
29
37
# RUN: %lld -arch arm64 -lSystem -e _main -o %t/a.out %t/a.o --verbose-bp-section-orderer --compression-sort=both --irpgo-profile-sort=%t/a.profdata 2>&1 | FileCheck %s --check-prefix=COMPRESSION-BOTH
30
38
31
39
# COMPRESSION-FUNC: Ordered 7 sections using balanced partitioning
32
- # COMPRESSION-DATA: Ordered 4 sections using balanced partitioning
33
- # COMPRESSION-BOTH: Ordered 11 sections using balanced partitioning
40
+ # COMPRESSION-DATA: Ordered 7 sections using balanced partitioning
41
+ # COMPRESSION-BOTH: Ordered 14 sections using balanced partitioning
34
42
35
43
#--- a.s
36
44
.text
66
74
.ascii "hello world"
67
75
s2:
68
76
.ascii "i am a string"
77
+ s3:
78
+ .ascii "this is s3"
69
79
r1:
70
80
.quad s1
71
81
r2:
72
82
.quad r1
83
+ r3:
84
+ .quad r2
85
+ r4:
86
+ .quad s2
73
87
74
88
.subsections_via_symbols
75
89
121
135
F
122
136
E
123
137
D
138
+ s3
139
+ r3
140
+ r2
You can’t perform that action at this time.
0 commit comments