[llvm] ab1d977 - [test] Fix unused FileCheck prefixes in test/Reduce

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 1 23:05:53 PST 2021


Author: Fangrui Song
Date: 2021-02-01T23:05:46-08:00
New Revision: ab1d977a16c4fd2bdaaac539f8f82006234d7c75

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

LOG: [test] Fix unused FileCheck prefixes in test/Reduce

Added: 
    

Modified: 
    llvm/test/Reduce/no-replace-intrinsic-callee-with-undef.ll
    llvm/test/Reduce/remove-function-attributes.ll
    llvm/test/Reduce/remove-multiple-use-of-args-in-same-instruction.ll
    llvm/test/Reduce/remove-multiple-use-of-global-vars-in-same-instruction.ll
    llvm/test/Reduce/remove-unused-declarations.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Reduce/no-replace-intrinsic-callee-with-undef.ll b/llvm/test/Reduce/no-replace-intrinsic-callee-with-undef.ll
index 6aba640b7688..f2463459cab6 100644
--- a/llvm/test/Reduce/no-replace-intrinsic-callee-with-undef.ll
+++ b/llvm/test/Reduce/no-replace-intrinsic-callee-with-undef.ll
@@ -4,11 +4,11 @@
 ; reduction instead.
 
 ; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log
-; RUN: cat %t | FileCheck -implicit-check-not=uninteresting --check-prefixes=ALL,CHECK-FINAL %s
+; RUN: FileCheck -implicit-check-not=uninteresting --check-prefixes=ALL,CHECK-FINAL %s < %t
 
 ; Check that the call is removed by instruction reduction passes
-; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=ALL,CHECK-FUNC --test-arg %s --test-arg --input-file %s -o %t
-; RUN: cat %t | FileCheck -implicit-check-not=uninteresting --check-prefixes=ALL,CHECK-NOCALL %s
+; RUN: llvm-reduce --test FileCheck --test-arg --check-prefix=ALL --test-arg %s --test-arg --input-file %s -o %t
+; RUN: FileCheck -implicit-check-not=uninteresting --check-prefixes=ALL,CHECK-NOCALL %s < %t
 
 
 declare i8* @llvm.sponentry.p0i8()

diff  --git a/llvm/test/Reduce/remove-function-attributes.ll b/llvm/test/Reduce/remove-function-attributes.ll
index 52bbda36f332..4f254d24eca2 100644
--- a/llvm/test/Reduce/remove-function-attributes.ll
+++ b/llvm/test/Reduce/remove-function-attributes.ll
@@ -1,7 +1,7 @@
 ; Test that llvm-reduce can remove uninteresting attributes.
 ;
-; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
-; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
+; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
+; RUN: FileCheck --check-prefix=CHECK-FINAL %s < %t
 
 ; CHECK-INTERESTINGNESS: declare
 ; CHECK-INTERESTINGNESS-SAME: "attr0"

diff  --git a/llvm/test/Reduce/remove-multiple-use-of-args-in-same-instruction.ll b/llvm/test/Reduce/remove-multiple-use-of-args-in-same-instruction.ll
index cd23d6e61602..61bfc3786c95 100644
--- a/llvm/test/Reduce/remove-multiple-use-of-args-in-same-instruction.ll
+++ b/llvm/test/Reduce/remove-multiple-use-of-args-in-same-instruction.ll
@@ -1,7 +1,7 @@
 ; Test that llvm-reduce can remove uninteresting function arguments from function definitions as well as their calls.
 ;
-; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
-; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
+; RUN: llvm-reduce --test FileCheck --test-arg --check-prefix=CHECK-ALL --test-arg %s --test-arg --input-file %s -o %t
+; RUN: FileCheck --check-prefix=CHECK-ALL %s < %t
 
 ; CHECK-ALL: declare void @use(i32, i32, i32)
 declare void @use(i32, i32, i32)

diff  --git a/llvm/test/Reduce/remove-multiple-use-of-global-vars-in-same-instruction.ll b/llvm/test/Reduce/remove-multiple-use-of-global-vars-in-same-instruction.ll
index 6d62bd2938d7..ba73a68f0de9 100644
--- a/llvm/test/Reduce/remove-multiple-use-of-global-vars-in-same-instruction.ll
+++ b/llvm/test/Reduce/remove-multiple-use-of-global-vars-in-same-instruction.ll
@@ -1,7 +1,7 @@
 ; Test that llvm-reduce can remove uninteresting function arguments from function definitions as well as their calls.
 ;
-; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
-; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
+; RUN: llvm-reduce --test FileCheck --test-arg --check-prefix=CHECK-ALL --test-arg %s --test-arg --input-file %s -o %t
+; RUN: FileCheck --check-prefix=CHECK-ALL %s < %t
 
 ; CHECK-ALL: @uninteresting1 = global
 ; CHECK-ALL: @uninteresting2 = global

diff  --git a/llvm/test/Reduce/remove-unused-declarations.ll b/llvm/test/Reduce/remove-unused-declarations.ll
index 5ae3a3edbad0..d1e69325c7c4 100644
--- a/llvm/test/Reduce/remove-unused-declarations.ll
+++ b/llvm/test/Reduce/remove-unused-declarations.ll
@@ -1,5 +1,5 @@
-; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
-; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL --implicit-check-not=uninteresting %s
+; RUN: llvm-reduce --test FileCheck --test-arg --check-prefix=CHECK-ALL --test-arg %s --test-arg --input-file %s -o %t
+; RUN: FileCheck --check-prefix=CHECK-ALL --implicit-check-not=uninteresting %s < %t
 
 declare void @llvm.uninteresting()
 declare void @uninteresting()


        


More information about the llvm-commits mailing list