1 ; RUN: opt -simple-loop-unswitch -disable-output < %s
2 ; RUN: opt -simple-loop-unswitch -enable-mssa-loop-dependency=true -verify-memoryssa -disable-output < %s
5 define i32 @test(i32 %command) {
9 tailrecurse: ; preds = %if.then14, %tailrecurse, %entry
10 br i1 undef, label %if.then, label %tailrecurse
12 if.then: ; preds = %tailrecurse
13 switch i32 %command, label %sw.bb [
14 i32 2, label %land.lhs.true
15 i32 0, label %land.lhs.true
18 land.lhs.true: ; preds = %if.then, %if.then
19 br i1 undef, label %sw.bb, label %if.then14
21 if.then14: ; preds = %land.lhs.true
22 switch i32 %command, label %tailrecurse [
27 sw.bb: ; preds = %if.then14