1 ; Test that llvm-reduce produces the same output when starting at a higher granularity level.
3 ; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=functions,instructions --starting-granularity-level=2 --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
4 ; RUN: cat %t | FileCheck -implicit-check-not=uninteresting --check-prefixes=CHECK-ALL,CHECK-FINAL %s
6 define i32 @uninteresting1() {
11 ; CHECK-ALL-LABEL: interesting()
12 define i32 @interesting() {
14 ; CHECK-INTERESTINGNESS: call i32 @interesting()
15 %call2 = call i32 @interesting()
16 %call = call i32 @uninteresting1()
20 ; CHECK-FINAL-NEXT: entry:
21 ; CHECK-FINAL-NEXT: %call2 = call i32 @interesting()
22 ; CHECK-FINAL-NEXT: ret i32 5
25 define i32 @uninteresting2() {
30 declare void @uninteresting3()