[llvm] [StaticDataLayout] Only emit JT prefixes if enabled (PR #228222)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 17:46:05 PDT 2026
================
@@ -7,19 +7,21 @@
; The static-data-splitter pass doesn't run.
; RUN: llc -mtriple=aarch64-unknown-linux-gnu -function-sections=true \
; RUN: -aarch64-enable-atomic-cfg-tidy=false -aarch64-min-jump-table-entries=2 \
-; RUN: -unique-section-names=true %s -o - 2>&1 | FileCheck %s --check-prefixes=DEFAULT,COMM
+; RUN: -unique-section-names=true -partition-static-data-sections \
+; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=DEFAULT,COMM
; Repeat the command with -preserve-hot-data-section-prefix=false
; RUN: llc -mtriple=aarch64-unknown-linux-gnu -function-sections=true \
; RUN: -aarch64-enable-atomic-cfg-tidy=false -aarch64-min-jump-table-entries=2 \
; RUN: -preserve-hot-data-section-prefix=false \
-; RUN: -unique-section-names=true %s -o - 2>&1 | FileCheck %s --check-prefixes=DEFNOHOT,COMM
+; RUN: -unique-section-names=true -partition-static-data-sections \
+; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=DEFNOHOT,COMM
; DEFAULT: .section .rodata.hot.foo,"a", at progbits
; DEFNOHOT: .section .rodata.foo,"a", at progbits
; COMM: .LJTI0_0:
-; COMM: .LJTI0_1:
; COMM: .LJTI0_2:
+; COMM: .LJTI0_1:
----------------
mingmingl-llvm wrote:
Is the order change from 012 to 021 intentional?
https://github.com/llvm/llvm-project/pull/228222
More information about the llvm-commits
mailing list