[llvm] [CodeGen] Introduce Static Data Splitter pass (PR #122183)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 10:52:31 PST 2025


================
@@ -0,0 +1,177 @@
+; -stats requires asserts
+; requires: asserts
+
+; Stop after 'finalize-isel' for simpler MIR, and lower the minimum number of
+; jump table entries so 'switch' needs fewer cases to generate a jump table.
+; RUN: llc -stop-after=finalize-isel -min-jump-table-entries=2 %s -o %t.mir
+; RUN: llc --run-pass=static-data-splitter -stats -x mir %t.mir -o - 2>&1 | FileCheck %s --check-prefix=STAT
+
+; Tests stat messages are expected.
+; TODO: Update test to verify section suffixes when target-lowering and assembler changes are implemented.
----------------
snehasish wrote:

`TODO:` looks like a directive here, maybe use `COM:` and then note the todo?

https://llvm.org/docs/CommandGuide/FileCheck.html#the-com-directive

https://github.com/llvm/llvm-project/pull/122183


More information about the llvm-commits mailing list