1 ; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=simplify-conditionals-true --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2 ; RUN: FileCheck --check-prefixes=RESULT-TRUE %s < %t
4 ; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=simplify-conditionals-false --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
5 ; RUN: FileCheck --check-prefixes=RESULT-FALSE %s < %t
7 ; CHECK-INTERESTINGNESS-LABEL: @func(
8 ; CHECK-INTERESTINGNESS: store i32 1,
11 ; RESULT-TRUE: store i32 0, ptr null, align 4
12 ; RESULT-TRUE-NEXT: store i32 1, ptr null, align 4
13 ; RESULT-TRUE-NEXT: br label %bb2
14 ; RESULT-TRUE-NOT: bb1
18 ; RESULT-FALSE: store i32 0, ptr null, align 4
19 ; RESULT-FALSE-NEXT: br label %bb2
21 ; RESULT-FALSE: bb1: ; No predecessors!
22 ; RESULT-FALSE-NEXT: store i32 1, ptr null, align 4
23 ; RESULT-FALSE-NEXT: br label %bb3
24 define void @func(i1 %cond0, i1 %cond1) {
27 br i1 %cond0, label %bb1, label %bb2
31 br i1 %cond1, label %bb2, label %bb3