1 ; RUN: opt < %s -simplifycfg -S | \
2 ; RUN: grep switch | count 1
4 ; Test that a switch going to a switch on the same value can be merged. All
5 ; three switches in this example can be merged into one big one.
15 define void @test1(i32 %V) {
16 switch i32 %V, label %F [
22 T: ; preds = %0, %0, %0
23 switch i32 %V, label %F [
31 B: ; preds = %F, %F, %T
37 F: ; preds = %F, %T, %0, %0
38 switch i32 %V, label %F [