1 ; RUN: opt < %s -S -passes="default<O1>" | FileCheck %s -check-prefixes=TRIVIAL,CHECK
2 ; RUN: opt < %s -S -passes="default<O2>" | FileCheck %s -check-prefixes=TRIVIAL,CHECK
3 ; RUN: opt < %s -S -passes="default<O3>" | FileCheck %s -check-prefixes=NONTRIVIAL,CHECK
4 ; RUN: opt < %s -S -passes="default<Os>" | FileCheck %s -check-prefixes=TRIVIAL,CHECK
5 ; RUN: opt < %s -S -passes="default<Oz>" | FileCheck %s -check-prefixes=TRIVIAL,CHECK
11 ; TRIVIAL-NOT: loop_begin.us:
12 ; NONTRIVIAL: loop_begin.us:
14 define i32 @test1(ptr %ptr, i1 %cond1, i1 %cond2) {
19 br i1 %cond1, label %loop_a, label %loop_b
26 br i1 %cond2, label %loop_b_a, label %loop_b_b
37 %v = load i1, ptr %ptr
38 br i1 %v, label %loop_begin, label %loop_exit
44 ; CHECK-NOT: loop2_begin.us:
45 define i32 @test2(ptr %ptr, i1 %cond1, i1 %cond2) optsize {
50 br i1 %cond1, label %loop2_a, label %loop2_b
57 br i1 %cond2, label %loop2_b_a, label %loop2_b_b
68 %v = load i1, ptr %ptr
69 br i1 %v, label %loop2_begin, label %loop2_exit