summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis/RegionInfo/20100809_bb_not_in_domtree.ll
blob: 84e72783dcde4940e971995e87d6af8af0cf9986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: opt -regions < %s
; RUN: opt < %s -passes='print<regions>'

define i32 @main() nounwind {
entry:
  br label %for.cond

test:
  br label %for.cond

for.cond:                                         ; preds = %for.inc, %entry
  br i1 true, label %for.body, label %for.end

for.body:                                         ; preds = %for.cond
  br label %for.inc

for.inc:                                          ; preds = %for.body
  br label %for.cond

for.end:                                          ; preds = %for.cond
  ret i32 0
}
OpenPOWER on IntegriCloud