[llvm] 3dec24d - Stats are sorted before they are printed. Try fixing test failure by checking stats in its print order.

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 10:11:46 PST 2025


Author: mingmingl
Date: 2025-01-23T10:11:11-08:00
New Revision: 3dec24d2a284e98c8a12b8ec9d0a80a657b2d992

URL: https://github.com/llvm/llvm-project/commit/3dec24d2a284e98c8a12b8ec9d0a80a657b2d992
DIFF: https://github.com/llvm/llvm-project/commit/3dec24d2a284e98c8a12b8ec9d0a80a657b2d992.diff

LOG: Stats are sorted before they are printed. Try fixing test failure by checking stats in its print order.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/jump-table-partition.ll b/llvm/test/CodeGen/X86/jump-table-partition.ll
index 6a6aa00fa7fa0a..2fd5d523a10cec 100644
--- a/llvm/test/CodeGen/X86/jump-table-partition.ll
+++ b/llvm/test/CodeGen/X86/jump-table-partition.ll
@@ -1,9 +1,6 @@
 ; -stats requires asserts
 ; requires: asserts
 
-; COM: Fix test failures on certain environments and re-enable the test.
-; UNSUPPORTED: target={{.*}}
-
 ; 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 -mtriple=x86_64-unknown-linux-gnu -stop-after=finalize-isel -min-jump-table-entries=2 %s -o %t.mir
@@ -13,9 +10,9 @@
 ; COM: Update test to verify section suffixes when target-lowering and assembler changes are implemented.
 ; COM: Also run static-data-splitter pass with -static-data-default-hotness=cold and check data section suffix.
  
-; STAT-DAG: 2 static-data-splitter - Number of cold jump tables seen
-; STAT-DAG: 2 static-data-splitter - Number of hot jump tables seen
-; STAT-DAG: 1 static-data-splitter - Number of jump tables with unknown hotness
+; STAT: 2 static-data-splitter - Number of cold jump tables seen
+; STAT: 2 static-data-splitter - Number of hot jump tables seen
+; STAT: 1 static-data-splitter - Number of jump tables with unknown hotness
 
 ; In function @foo, the 2 switch instructions to jt0.* and jt1.* get lowered to hot jump tables,
 ; and the 2 switch instructions to jt2.* and jt3.* get lowered to cold jump tables.


        


More information about the llvm-commits mailing list