1 ; RUN: opt -passes='simple-loop-unswitch<no-trivial>' -S < %s | FileCheck %s --check-prefix=NOTRIVIAL
2 ; RUN: opt -passes='simple-loop-unswitch' -S < %s | FileCheck %s --check-prefix=TRIVIAL
3 ; RUN: opt -passes='simple-loop-unswitch<trivial>' -S < %s | FileCheck %s --check-prefix=TRIVIAL
5 declare void @some_func() noreturn
9 define i32 @test1(ptr %var, i1 %cond1, i1 %cond2) {
14 br i1 %cond1, label %continue, label %loop_exit ; first trivial condition
17 %var_val = load i32, ptr %var
18 br i1 %cond2, label %do_something, label %loop_exit ; second trivial condition
21 call void @some_func() noreturn nounwind