1 ; RUN: opt -passes='simple-loop-unswitch<nontrivial>' < %s -S | FileCheck %s
4 ; CHECK-NOT: if.end{{.*}}:
5 declare i32 @__gxx_wasm_personality_v0(...)
9 define void @test(i1 %arg) personality ptr @__gxx_wasm_personality_v0 {
13 while.body: ; preds = %cleanup, %entry
14 br i1 %arg, label %if.end, label %if.then
16 if.then: ; preds = %while.body
19 if.end: ; preds = %if.then, %while.body
21 to label %cleanup unwind label %catch.dispatch
23 catch.dispatch: ; preds = %invoke.cont, %if.end
24 %0 = catchswitch within none [label %catch] unwind to caller
26 catch: ; preds = %catch.dispatch
27 %1 = catchpad within %0 [ptr null]
30 cleanup: ; preds = %invoke.cont