Skip to content

Commit acc7e25

Browse files
rebase on top of precommit test
2 parents 169486b + a5e6552 commit acc7e25

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

llvm/test/CodeGen/AArch64/jump-table-partition.ll

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
; The llc commands override two options
42
; - 'aarch64-enable-atomic-cfg-tidy' to false to turn off simplifycfg pass,
53
; which can simplify away switch instructions before isel lowers switch instructions.
@@ -37,9 +35,8 @@
3735
; RUN: -aarch64-enable-atomic-cfg-tidy=false -aarch64-min-jump-table-entries=2 \
3836
; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=FUNCLESS,JT
3937

40-
; In function @foo, the 2 switch instructions to jt0.* and jt1.* are placed in
41-
; hot-prefixed sections, and the 2 switch instructions to jt2.* and jt3.* are
42-
; placed in cold-prefixed sections.
38+
; A function's section prefix is used for all jump tables of this function.
39+
; @foo is hot so its jump table data section has a hot prefix.
4340
; NUM: .section .rodata.hot.,"a",@progbits,unique,2
4441
; FUNC: .section .rodata.hot.foo,"a",@progbits
4542
; FUNCLESS: .section .rodata.hot.,"a",@progbits
@@ -51,10 +48,9 @@
5148
; JT: .LJTI0_1:
5249
; JT: .LJTI0_3:
5350

54-
; @func_without_profile simulates the functions without profile information
55-
; (e.g., not instrumented or not profiled), its jump tables are placed in
56-
; sections without hot or unlikely prefixes.
57-
; NUM: .section .rodata,"a",@progbits,unique,5
51+
; func_without_profile doesn't have profiles, so its jumptable doesn't have
52+
; hotness-based prefix.
53+
; NUM: .section .rodata,"a",@progbits,unique,
5854
; FUNC: .section .rodata.func_without_profile,"a",@progbits
5955
; FUNCLESS: .section .rodata,"a",@progbits
6056
; JT: .LJTI1_0:

0 commit comments

Comments
 (0)