29 lines · plain
1; RUN: opt -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output < %s2; PR100313 4define i32 @test(i32 %command, i1 %arg) {5entry:6 br label %tailrecurse7 8tailrecurse: ; preds = %if.then14, %tailrecurse, %entry9 br i1 %arg, label %if.then, label %tailrecurse10 11if.then: ; preds = %tailrecurse12 switch i32 %command, label %sw.bb [13 i32 2, label %land.lhs.true14 i32 0, label %land.lhs.true15 ]16 17land.lhs.true: ; preds = %if.then, %if.then18 br i1 %arg, label %sw.bb, label %if.then1419 20if.then14: ; preds = %land.lhs.true21 switch i32 %command, label %tailrecurse [22 i32 0, label %sw.bb23 i32 1, label %sw.bb24 ]25 26sw.bb: ; preds = %if.then1427 unreachable28}29