blob: 3f93a6ecd358999e636b207a8bd159dd22e4b82d [file] [log] [blame]
Jan Wen Voung6dc30762013-03-12 16:27:52 +00001; REQUIRES: asserts
Tobias Grosser336734a2010-07-22 07:46:31 +00002; RUN: opt -regions -analyze < %s | FileCheck %s
Chandler Carruth5da53432012-07-02 18:37:59 +00003; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
4; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
5; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
Tobias Grosser336734a2010-07-22 07:46:31 +00006
7define void @normal_condition() nounwind {
80:
9 br label %"1"
101:
11 br i1 1, label %"2", label %"3"
122:
13 br label %"4"
143:
15 br label %"4"
164:
17 ret void
18}
19
20; CHECK-NOT: =>
21; CHECK: [0] 0 => <Function Return>
22; CHECK-NEXT: [1] 1 => 4
23; STAT: 2 region - The # of regions
24
25; BBIT: 0, 1, 2, 4, 3,
26; BBIT: 1, 2, 3,
27
28; RNIT: 0, 1 => 4, 4,
29; RNIT: 1, 2, 3,