[llvm] 19302cd - [NFC] Simplify pairwise store test mir to drop stack accesses.

Huihui Zhang via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 10 12:41:25 PST 2022


Author: Huihui Zhang
Date: 2022-02-10T12:40:32-08:00
New Revision: 19302cd7a449dc02bc03161329b5763b3719f12c

URL: https://github.com/llvm/llvm-project/commit/19302cd7a449dc02bc03161329b5763b3719f12c
DIFF: https://github.com/llvm/llvm-project/commit/19302cd7a449dc02bc03161329b5763b3719f12c.diff

LOG: [NFC] Simplify pairwise store test mir to drop stack accesses.

Test simplified:
 test/CodeGen/AArch64/stp-opt-with-renaming-undef-assert.mir

Added: 
    

Modified: 
    llvm/test/CodeGen/AArch64/stp-opt-with-renaming-undef-assert.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/stp-opt-with-renaming-undef-assert.mir b/llvm/test/CodeGen/AArch64/stp-opt-with-renaming-undef-assert.mir
index 27e4a270ed84c..c1e0829cf788b 100644
--- a/llvm/test/CodeGen/AArch64/stp-opt-with-renaming-undef-assert.mir
+++ b/llvm/test/CodeGen/AArch64/stp-opt-with-renaming-undef-assert.mir
@@ -19,11 +19,11 @@
 # CHECK-NEXT: renamable $q23_q24_q25 = LD3Threev16b undef renamable $x18 :: (load (s384) from `<16 x i8>* undef`, align 64)
 # CHECK-NEXT: $q16 = EXTv16i8 renamable $q23, renamable $q23, 8
 # CHECK-NEXT: renamable $q20 = EXTv16i8 renamable $q14, renamable $q14, 8
-# CHECK-NEXT: STRQui killed renamable $q20, $sp, 4 :: (store (s128) into %stack.3)
+# CHECK-NEXT: STRQui killed renamable $q20, $sp, 4 :: (store (s128))
 # CHECK-NEXT: renamable $d6 = ZIP2v8i8 renamable $d23, undef renamable $d16
-# CHECK-NEXT: STRDui killed renamable $d6, $sp, 11 :: (store (s64) into %stack.2)
+# CHECK-NEXT: STRDui killed renamable $d6, $sp, 11 :: (store (s64))
 # CHECK-NEXT: renamable $q6 = EXTv16i8 renamable $q13, renamable $q13, 8
-# CHECK-NEXT: STPQi killed renamable $q6, killed $q16, $sp, 6 :: (store (s128) into %stack.0), (store (s128) into %stack.1)
+# CHECK-NEXT: STPQi killed renamable $q6, killed $q16, $sp, 6 :: (store (s128))
 # CHECK-NEXT: RET undef $lr
 
 ---
@@ -36,19 +36,6 @@ frameInfo:
   maxAlignment:    16
   maxCallFrameSize: 0
 fixedStack:      []
-stack:
-  - { id: 0, name: '', type: spill-slot, offset: -80, size: 16, alignment: 16,
-      stack-id: default, callee-saved-register: '', callee-saved-restored: true,
-      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
-  - { id: 1, name: '', type: spill-slot, offset: -96, size: 16, alignment: 16,
-      stack-id: default, callee-saved-register: '', callee-saved-restored: true,
-      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
-  - { id: 2, name: '', type: spill-slot, offset: -104, size: 8, alignment: 8,
-      stack-id: default, callee-saved-register: '', callee-saved-restored: true,
-      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
-  - { id: 3, name: '', type: spill-slot, offset: -128, size: 16, alignment: 16,
-      stack-id: default, callee-saved-register: '', callee-saved-restored: true,
-      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
 machineFunctionInfo: {}
 body:             |
   bb.0:
@@ -56,12 +43,12 @@ body:             |
     renamable $q13_q14_q15 = LD3Threev16b undef renamable $x17 :: (load (s384) from `<16 x i8>* undef`, align 64)
     renamable $q23_q24_q25 = LD3Threev16b undef renamable $x18 :: (load (s384) from `<16 x i8>* undef`, align 64)
     renamable $q20 = EXTv16i8 renamable $q23, renamable $q23, 8
-    STRQui killed renamable $q20, $sp, 7 :: (store (s128) into %stack.0)
+    STRQui killed renamable $q20, $sp, 7 :: (store (s128))
     renamable $q20 = EXTv16i8 renamable $q14, renamable $q14, 8
-    STRQui killed renamable $q20, $sp, 4 :: (store (s128) into %stack.3)
+    STRQui killed renamable $q20, $sp, 4 :: (store (s128))
     renamable $d6 = ZIP2v8i8 renamable $d23, undef renamable $d16
-    STRDui killed renamable $d6, $sp, 11 :: (store (s64) into %stack.2)
+    STRDui killed renamable $d6, $sp, 11 :: (store (s64))
     renamable $q6 = EXTv16i8 renamable $q13, renamable $q13, 8
-    STRQui killed renamable $q6, $sp, 6 :: (store (s128) into %stack.1)
+    STRQui killed renamable $q6, $sp, 6 :: (store (s128))
     RET undef $lr
 ...


        


More information about the llvm-commits mailing list