1 ; RUN: opt -loop-unswitch -disable-output < %s
4 define i32 @test(i32 %command) {
8 tailrecurse: ; preds = %if.then14, %tailrecurse, %entry
9 br i1 undef, label %if.then, label %tailrecurse
11 if.then: ; preds = %tailrecurse
12 switch i32 %command, label %sw.bb [
13 i32 2, label %land.lhs.true
14 i32 0, label %land.lhs.true
17 land.lhs.true: ; preds = %if.then, %if.then
18 br i1 undef, label %sw.bb, label %if.then14
20 if.then14: ; preds = %land.lhs.true
21 switch i32 %command, label %tailrecurse [
26 sw.bb: ; preds = %if.then14