File: 2005-09-12-UsesOutOutsideOfLoop.ll

package info (click to toggle)
llvm-toolchain-3.8 1%3A3.8.1-24
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 379,280 kB
  • ctags: 388,501
  • sloc: cpp: 2,309,705; ansic: 477,070; objc: 100,918; asm: 97,974; python: 95,911; sh: 18,634; makefile: 7,294; perl: 5,584; ml: 5,460; pascal: 4,661; lisp: 2,548; xml: 686; cs: 350; php: 212; csh: 117
file content (32 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (42)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
; RUN: opt < %s -loop-reduce -disable-output

define void @main() {
entry:
	br label %loopentry.0
loopentry.0:		; preds = %then.5, %entry
	%arg_index.1.ph = phi i32 [ 1, %entry ], [ %arg_index.1.ph.be, %then.5 ]		; <i32> [#uses=1]
	br i1 false, label %no_exit.0, label %loopexit.0
no_exit.0:		; preds = %loopentry.0
	%arg_index.1.1 = add i32 0, %arg_index.1.ph		; <i32> [#uses=2]
	br i1 false, label %then.i55, label %endif.i61
then.i55:		; preds = %no_exit.0
	br i1 false, label %then.4, label %else.1
endif.i61:		; preds = %no_exit.0
	ret void
then.4:		; preds = %then.i55
	%tmp.19993 = add i32 %arg_index.1.1, 2		; <i32> [#uses=0]
	ret void
else.1:		; preds = %then.i55
	br i1 false, label %then.i86, label %loopexit.i97
then.i86:		; preds = %else.1
	ret void
loopexit.i97:		; preds = %else.1
	br i1 false, label %then.5, label %else.2
then.5:		; preds = %loopexit.i97
	%arg_index.1.ph.be = add i32 %arg_index.1.1, 2		; <i32> [#uses=1]
	br label %loopentry.0
else.2:		; preds = %loopexit.i97
	ret void
loopexit.0:		; preds = %loopentry.0
	ret void
}