[llvm] 0e1ee73 - llvm-reduce: Restrict test to only test relevant reductions

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 10:28:03 PDT 2022


Author: Matt Arsenault
Date: 2022-09-14T13:21:01-04:00
New Revision: 0e1ee738f17c0b1a91ab13a529863bd0fc520495

URL: https://github.com/llvm/llvm-project/commit/0e1ee738f17c0b1a91ab13a529863bd0fc520495
DIFF: https://github.com/llvm/llvm-project/commit/0e1ee738f17c0b1a91ab13a529863bd0fc520495.diff

LOG: llvm-reduce: Restrict test to only test relevant reductions

Avoids breaking this test in a future change.

Added: 
    

Modified: 
    llvm/test/tools/llvm-reduce/mir/drop-ir-references.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-reduce/mir/drop-ir-references.mir b/llvm/test/tools/llvm-reduce/mir/drop-ir-references.mir
index abd3ff1a875a3..ad94fd98c0d32 100644
--- a/llvm/test/tools/llvm-reduce/mir/drop-ir-references.mir
+++ b/llvm/test/tools/llvm-reduce/mir/drop-ir-references.mir
@@ -1,5 +1,5 @@
 # REQUIRES: amdgpu-registered-target
-# RUN: llvm-reduce -abort-on-invalid-reduction -simplify-mir -mtriple=amdgcn-amd-amdhsa --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
+# RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=ir-instruction-references,ir-block-references,ir-function-references -simplify-mir -mtriple=amdgcn-amd-amdhsa --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
 # RUN: FileCheck --check-prefix=RESULT %s < %t
 
 # CHECK-INTERESTINGNESS: G_LOAD
@@ -25,11 +25,11 @@
 
 
 # RESULT: bb.2:
-# RESULT-NEXT: G_STORE %{{[0-9]+}}(<2 x s32>), %{{[0-9]+}}(p5) :: (store (<2 x s32>) into %fixed-stack.0, addrspace 5)
+# RESULT: G_STORE %{{[0-9]+}}(<2 x s32>), %{{[0-9]+}}(p5) :: (store (<2 x s32>) into %fixed-stack.0, addrspace 5)
 # RESULT-NEXT: G_STORE %{{[0-9]+}}(<2 x s32>), %{{[0-9]+}}(p5) :: (store (<2 x s32>) into %stack.0, addrspace 5)
 
 # RESULT: bb.3:
-# RESULT-NEXT: G_STORE %{{[0-9]+}}(s32), %{{[0-9]+}}(p5) :: (store (s32) into %ir.keep.store, addrspace 5)
+# RESULT: G_STORE %{{[0-9]+}}(s32), %{{[0-9]+}}(p5) :: (store (s32) into %ir.keep.store, addrspace 5)
 # RESULT-NEXT: S_ENDPGM
 
 --- |


        


More information about the llvm-commits mailing list