[llvm] cf99be5 - llvm-reduce: Restrict set of run delta passes in invoke test
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 07:13:38 PST 2023
Author: Matt Arsenault
Date: 2023-01-03T10:13:17-05:00
New Revision: cf99be5c7c81dca4f5c5da015c935ac518e5078c
URL: https://github.com/llvm/llvm-project/commit/cf99be5c7c81dca4f5c5da015c935ac518e5078c
DIFF: https://github.com/llvm/llvm-project/commit/cf99be5c7c81dca4f5c5da015c935ac518e5078c.diff
LOG: llvm-reduce: Restrict set of run delta passes in invoke test
Also stop using cat
Added:
Modified:
llvm/test/tools/llvm-reduce/remove-invoked-functions.ll
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-reduce/remove-invoked-functions.ll b/llvm/test/tools/llvm-reduce/remove-invoked-functions.ll
index 023d4cfbe7b1..b18b47aa9b23 100644
--- a/llvm/test/tools/llvm-reduce/remove-invoked-functions.ll
+++ b/llvm/test/tools/llvm-reduce/remove-invoked-functions.ll
@@ -1,12 +1,12 @@
-; 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 --delta-passes=instructions --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
+; RUN: FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s < %t
; CHECK-INTERESTINGNESS: define i32 @maybe_throwing_callee(
-; CHECK-FINAL: define i32 @maybe_throwing_callee()
+; CHECK-FINAL: define i32 @maybe_throwing_callee(i32 %arg)
define i32 @maybe_throwing_callee(i32 %arg) {
; CHECK-ALL: call void @thrown()
; CHECK-INTERESTINGNESS: ret i32
-; CHECK-FINAL: ret i32 0
+; CHECK-FINAL: ret i32 %arg
call void @thrown()
ret i32 %arg
}
@@ -18,7 +18,7 @@ declare void @did_not_throw(i32)
declare void @thrown()
; CHECK-INTERESTINGNESS: define void @caller(
-; CHECK-FINAL: define void @caller()
+; CHECK-FINAL: define void @caller(i32 %arg)
define void @caller(i32 %arg) personality ptr @__gxx_personality_v0 {
; CHECK-ALL: bb:
bb:
More information about the llvm-commits
mailing list