2 ; RUN: opt -regions -analyze < %s | FileCheck %s
3 ; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
5 ; While working on improvements to region info analysis, this test
6 ; case caused an incorrect region bb2 => bb3 to be detected.
8 define internal i8 @main_read() nounwind {
13 br i1 true, label %bb2, label %bb7
16 br i1 true, label %bb4, label %bb3
19 br i1 true, label %bb4, label %bb8
37 ; CHECK: [0] bb => <Function Return>
38 ; CHECK-NEXT: [1] bb1 => bb8
39 ; CHECK-NEXT: End region tree