• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; REQUIRES: asserts
2; RUN: opt -regions -analyze < %s | FileCheck %s
3; 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
6
7; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
8
9define void @normal_condition() nounwind {
100:
11	br label %"1"
121:
13	br i1 1, label %"2", label %"3"
142:
15	br label %"3"
163:
17	ret void
18}
19; CHECK-NOT: =>
20; CHECK: [0] 0 => <Function Return>
21; CHECK: [1] 1 => 3
22
23; STAT: 2 region - The # of regions
24
25; BBIT: 0, 1, 2, 3,
26; BBIT: 1, 2,
27
28; RNIT: 0, 1 => 3, 3,
29; RNIT: 1, 2,
30