[llvm] [StaticDataLayout] Only emit JT prefixes if enabled (PR #228222)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 17:51:37 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:
----------------
boomanaiden154 wrote:
Yes. We enable static data partitioning which shuffles around the order.
https://github.com/llvm/llvm-project/pull/228222
More information about the llvm-commits
mailing list