1 ; RUN: opt < %s -simplifycfg -S | \
6 switch i32 5, label %Default [
24 ; Test folding to default dest
26 switch i32 3, label %Default [
44 ; Test folding all to same dest
45 define i32 @test3(i1 %C) {
46 br i1 %C, label %Start, label %TheDest
48 switch i32 3, label %TheDest [
54 TheDest: ; preds = %Start, %Start, %Start, %Start, %Start, %0
58 ; Test folding switch -> branch
59 define i32 @test4(i32 %C) {
60 switch i32 %C, label %L1 [
69 ; Can fold into a cond branch!
70 define i32 @test5(i32 %C) {
71 switch i32 %C, label %L1 [