1 ; Test that llvm-reduce can remove uninteresting function arguments from function definitions as well as their calls.
2 ; This test checks that functions with different argument types are handled correctly
4 ; RUN: llvm-reduce --abort-on-invalid-reduction --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
5 ; RUN: FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s --input-file %t
7 declare void @pass(ptr)
11 ; CHECK-INTERESTINGNESS: call void @pass({{.*}}@interesting
12 ; CHECK-FINAL: call void @pass(ptr @interesting)
13 call void @pass(ptr @interesting)
17 ; CHECK-ALL: define internal void @interesting
18 ; CHECK-INTERESTINGNESS-SAME: ({{.*}}%interesting{{.*}}) {
19 ; CHECK-FINAL-SAME: (ptr %interesting)
20 define internal void @interesting(i32 %uninteresting1, ptr %uninteresting2, ptr %interesting) {