blob: 00d9ed24e17ded9b3d607f3de9aee334dbb8bb49 [file] [log] [blame]
Tobias Grosserf96b0062010-07-22 07:46:31 +00001; RUN: opt -regions -analyze < %s | FileCheck %s
Chandler Carruth49589f02012-07-02 18:37:59 +00002; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
3; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
4; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
Tobias Grosserf96b0062010-07-22 07:46:31 +00005
6define void @normal_condition() nounwind {
70:
8 br label %"1"
91:
10 br i1 1, label %"2", label %"3"
112:
12 br label %"4"
133:
14 br label %"4"
154:
16 ret void
17}
18
19; CHECK-NOT: =>
20; CHECK: [0] 0 => <Function Return>
21; CHECK-NEXT: [1] 1 => 4
22; STAT: 2 region - The # of regions
23
24; BBIT: 0, 1, 2, 4, 3,
25; BBIT: 1, 2, 3,
26
27; RNIT: 0, 1 => 4, 4,
28; RNIT: 1, 2, 3,