|
8 | 8 |
|
9 | 9 | ; When 'partition-static-data-sections' is enabled, static data splitter pass will |
10 | 10 | ; categorize jump tables and assembly printer will place hot jump tables in the |
11 | | -; `.hot`-suffixed read only section, and cold ones in the `.rodata` sections. |
| 11 | +; `.rodata.hot`-prefixed section, and cold ones in the `.rodata.unlikely`-prefixed section. |
12 | 12 | ; Section names will optionally have `.<func>` if -function-sections is enabled. |
13 | | -; RUN: llc -enable-split-machine-functions -partition-static-data-sections=true -function-sections=true -min-jump-table-entries=2 %s -o - 2>&1 | FileCheck %s --check-prefixes=FUNC,JT,HOT |
| 13 | +; RUN: llc -enable-split-machine-functions -partition-static-data-sections=true -function-sections=true -min-jump-table-entries=2 %s -o - 2>&1 | FileCheck %s --check-prefixes=FUNC,JT,DEFAULTHOT |
14 | 14 | ; RUN: llc -enable-split-machine-functions -partition-static-data-sections=true -function-sections=false -min-jump-table-entries=2 %s -o - 2>&1 | FileCheck %s --check-prefixes=FUNCLESS,JT |
15 | 15 |
|
16 | | -; Tests that jump tables with unknown hotness are categorized as cold if `-static-data-default-hotness` specifies so. |
17 | | -; RUN: llc -enable-split-machine-functions -partition-static-data-sections=true -min-jump-table-entries=2 -static-data-default-hotness=cold -function-sections=true %s -o - 2>&1 | FileCheck %s --check-prefixes=FUNC,JT,DEFAULT |
| 16 | +; RUN: llc -enable-split-machine-functions -partition-static-data-sections=true -min-jump-table-entries=2 -static-data-default-hotness=cold -function-sections=true %s -o - 2>&1 | FileCheck %s --check-prefixes=FUNC,JT,DEFAULTCOLD |
18 | 17 |
|
19 | 18 | ; Tests stat messages are expected. |
20 | 19 | ; STAT-DAG: 2 static-data-splitter - Number of cold jump tables seen |
|
27 | 26 | ; FUNCLESS: .section .rodata.hot,"a",@progbits |
28 | 27 | ; JT: .LJTI0_0: |
29 | 28 | ; JT: .LJTI0_2: |
30 | | -; FUNC: .section .rodata.foo,"a",@progbits |
31 | | -; FUNCLESS: .section .rodata,"a",@progbits |
| 29 | +; FUNC: .section .rodata.unlikely.foo,"a",@progbits |
| 30 | +; FUNCLESS: .section .rodata.unlikely,"a",@progbits |
32 | 31 | ; JT: .LJTI0_1: |
33 | 32 | ; JT: .LJTI0_3: |
34 | | -; HOT: .section .rodata.hot.func_without_entry_count,"a",@progbits |
35 | | -; HOT: .LJTI1_0: |
| 33 | +; DEFAULTHOT: .section .rodata.hot.func_without_entry_count,"a",@progbits |
| 34 | +; DEFAULTHOT: .LJTI1_0: |
| 35 | +; FUNCLESS: .section .rodata.hot,"a",@progbits |
| 36 | +; FUNCLESS: .LJTI1_0: |
36 | 37 |
|
37 | | -; DEFAULT: .section .rodata.func_without_entry_count,"a",@progbits |
38 | | -; DEFAULT: .LJTI1_0: |
| 38 | +; DEFAULTCOLD: .section .rodata.unlikely.func_without_entry_count,"a",@progbits |
| 39 | +; DEFAULTCOLD: .LJTI1_0: |
39 | 40 |
|
40 | 41 | ; @foo has four jump tables, jt0, jt1, jt2 and jt3 in the input basic block |
41 | 42 | ; order; jt0 and jt2 are hot, and jt1 and jt3 are cold. |
|
0 commit comments