1 ; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2 ; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
4 ; CHECK-INTERESTINGNESS-LABEL: @interesting(
5 ; CHECK-INTERESTINGNESS-SAME: i32
6 ; CHECK-FINAL: declare void @interesting(i32)
7 declare void @interesting(i32 %uninteresting1, i32 %interesting, i32 %uninteresting2)
9 ; CHECK-INTERESTINGNESS-LABEL: @interesting2(
10 ; CHECK-INTERESTINGNESS-SAME: i32
11 ; CHECK-FINAL: declare void @interesting2(i32)
12 declare void @interesting2(i32 %uninteresting1, i32 %interesting, i32 %uninteresting2)
14 ; CHECK-INTERESTINGNESS-LABEL: @callee(
15 ; CHECK-INTERESTINGNESS-SAME: i32 %interesting
16 ; CHECK-FINAL: define void @callee(i32 %interesting) {
17 define void @callee(i32 %uninteresting1, i32 %interesting, i32 %uninteresting2) {
18 ; CHECK-INTERESTINGNESS: call void @interesting2(
19 ; CHECK-INTERESTINGNESS-SAME: i32 %interesting
20 ; CHECK-FINAL: call void @interesting2(i32 %interesting)
21 call void @interesting2(i32 %uninteresting1, i32 %interesting, i32 %uninteresting2)