Skip to content

Commit 3dec24d

Browse files
Stats are sorted before they are printed. Try fixing test failure by checking stats in its print order.
1 parent bec4c7f commit 3dec24d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
; -stats requires asserts
22
; requires: asserts
33

4-
; COM: Fix test failures on certain environments and re-enable the test.
5-
; UNSUPPORTED: target={{.*}}
6-
74
; Stop after 'finalize-isel' for simpler MIR, and lower the minimum number of
85
; jump table entries so 'switch' needs fewer cases to generate a jump table.
96
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -stop-after=finalize-isel -min-jump-table-entries=2 %s -o %t.mir
@@ -13,9 +10,9 @@
1310
; COM: Update test to verify section suffixes when target-lowering and assembler changes are implemented.
1411
; COM: Also run static-data-splitter pass with -static-data-default-hotness=cold and check data section suffix.
1512

16-
; STAT-DAG: 2 static-data-splitter - Number of cold jump tables seen
17-
; STAT-DAG: 2 static-data-splitter - Number of hot jump tables seen
18-
; STAT-DAG: 1 static-data-splitter - Number of jump tables with unknown hotness
13+
; STAT: 2 static-data-splitter - Number of cold jump tables seen
14+
; STAT: 2 static-data-splitter - Number of hot jump tables seen
15+
; STAT: 1 static-data-splitter - Number of jump tables with unknown hotness
1916

2017
; In function @foo, the 2 switch instructions to jt0.* and jt1.* get lowered to hot jump tables,
2118
; and the 2 switch instructions to jt2.* and jt3.* get lowered to cold jump tables.

0 commit comments

Comments
 (0)