blob: e48413a4c2dd46369c6abc160f5a8510f35dc3cd [file] [log] [blame]
Tobias Grosser336734a2010-07-22 07:46:31 +00001; RUN: opt -regions -analyze < %s | FileCheck %s
Chandler Carruth5da53432012-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 Grosser336734a2010-07-22 07:46:31 +00005
6define void @normal_condition() nounwind {
70:
8 br i1 1, label %"1", label %"4"
9
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; CHECK-NOT: =>
20; CHECK: [0] 0 => <Function Return>
21; CHECK-NEXT: [1] 0 => 4
22; CHECK-NEXT: [2] 1 => 4
23; STAT: 3 region - The # of regions
24
25; BBIT: 0, 1, 2, 4, 3,
26; BBIT: 0, 1, 2, 3,
27; BBIT: 1, 2, 3,
28
29; RNIT: 0 => 4, 4,
30; RNIT: 0, 1 => 4,
31; RNIT: 1, 2, 3,