blob: 8e588286a58a78cbf3e339d7dad45b4e040714a0 [file] [log] [blame]
Tobias Grosserf96b0062010-07-22 07:46:31 +00001; RUN: opt -regions -analyze < %s
Chandler Carruth49589f02012-07-02 18:37:59 +00002; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
Tobias Grosserf96b0062010-07-22 07:46:31 +00003
4define void @normal_condition() nounwind {
50:
6 br label %"1"
71:
8 br i1 1, label %"2", label %"3"
92:
10 br label %"2"
113:
12 br label %"4"
134:
14 ret void
15}
16; CHECK-NOT: =>
17; CHECK: [0] 0 => <Function Return>
18; CHECK: [1] 1 => 4
19; STAT: 2 region - The # of regions
20; STAT: 1 region - The # of simple regions