~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/Analysis/RegionInfo/condition_forward_edge.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: opt -regions -analyze < %s | FileCheck %s
 
2
; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
 
3
; RUN: opt -regions -print-region-style=bb  -analyze < %s |& FileCheck -check-prefix=BBIT %s
 
4
; RUN: opt -regions -print-region-style=rn  -analyze < %s |& FileCheck -check-prefix=RNIT %s
 
5
 
 
6
define void @normal_condition() nounwind {
 
7
0:
 
8
        br label %"1"
 
9
1:
 
10
        br i1 1, label %"2", label %"3"
 
11
2:
 
12
        br label %"3"
 
13
3:
 
14
        ret void
 
15
}
 
16
; CHECK-NOT: =>
 
17
; CHECK: [0] 0 => <Function Return>
 
18
; CHECK: [1] 1 => 3
 
19
 
 
20
; STAT: 2 region - The # of regions
 
21
 
 
22
; BBIT: 0, 1, 2, 3,
 
23
; BBIT: 1, 2,
 
24
 
 
25
; RNIT: 0, 1 => 3, 3,
 
26
; RNIT: 1, 2,