1 ; Test that llvm-reduce can remove uninteresting functions as well as
4 ; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=functions,instructions --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
5 ; RUN: cat %t | FileCheck -implicit-check-not=uninteresting --check-prefixes=CHECK-ALL,CHECK-FINAL %s
7 define i32 @uninteresting1() {
12 ; CHECK-ALL-LABEL: interesting()
13 define i32 @interesting() {
15 ; CHECK-INTERESTINGNESS: call i32 @interesting()
16 %call2 = call i32 @interesting()
17 %call = call i32 @uninteresting1()
21 ; CHECK-FINAL-NEXT: entry:
22 ; CHECK-FINAL-NEXT: %call2 = call i32 @interesting()
23 ; CHECK-FINAL-NEXT: ret i32 5
26 define i32 @uninteresting2() {
31 declare void @uninteresting3()