brintos

brintos / llvm-project-archived public Read only

0
0
Text · 920 B · 8951c02 Raw
31 lines · plain
1; Test that llvm-reduce produces the same output when starting at a higher granularity level.2;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 %t4; RUN: cat %t | FileCheck -implicit-check-not=uninteresting --check-prefixes=CHECK-ALL,CHECK-FINAL %s5 6define i32 @uninteresting1() {7entry:8  ret i32 09}10 11; CHECK-ALL-LABEL: interesting()12define i32 @interesting() {13entry:14  ; CHECK-INTERESTINGNESS: call i32 @interesting()15  %call2 = call i32 @interesting()16  %call = call i32 @uninteresting1()17  ret i32 518}19 20; CHECK-FINAL-NEXT: entry:21; CHECK-FINAL-NEXT:   %call2 = call i32 @interesting()22; CHECK-FINAL-NEXT:   ret i32 523; CHECK-FINAL-NEXT: }24 25define i32 @uninteresting2() {26entry:27  ret i32 028}29 30declare void @uninteresting3()31