blob: 61abef8ff7a9e4e7ba24e3dffad36eb5ea1400cc [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
Chandler Carruth5da53432012-07-02 18:37:59 +00003; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
Tobias Grosser336734a2010-07-22 07:46:31 +00004
5define void @normal_condition() nounwind {
60:
7 br label %"1"
81:
9 br i1 1, label %"2", label %"3"
102:
11 br label %"2"
123:
13 br label %"4"
144:
15 ret void
16}
17; CHECK-NOT: =>
18; CHECK: [0] 0 => <Function Return>
19; CHECK: [1] 1 => 4
20; STAT: 2 region - The # of regions
21; STAT: 1 region - The # of simple regions