2 ; RUN: opt -regions -analyze < %s | FileCheck %s
4 ; While working on improvements to the region info analysis, this test
5 ; case caused an incorrect region 3 => 8 to be detected.
7 define internal i8 @wibble() {
9 br i1 true, label %bb1, label %bb8
12 switch i32 0, label %bb2 [
29 bb6: ; preds = %bb5, %bb4
32 bb7: ; preds = %bb6, %bb1
35 bb8: ; preds = %bb7, %bb
39 ; CHECK: [0] bb => <Function Return>
40 ; CHECK-NEXT: [1] bb => bb8
41 ; CHECK-NEXT: [2] bb1 => bb7
42 ; CHECK-NEXT: End region tree