File: 2004-03-10-PHIInsertionBug.ll

package info (click to toggle)
llvm 2.2-12
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 38,648 kB
  • ctags: 28,258
  • sloc: cpp: 215,479; sh: 12,132; ansic: 10,002; yacc: 5,525; perl: 2,352; ml: 1,580; makefile: 956; pascal: 718; lex: 602; exp: 320; ada: 193; lisp: 160; csh: 116; objc: 59; python: 59; tcl: 20
file content (27 lines) | stat: -rw-r--r-- 755 bytes parent folder | download
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
; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -disable-output

implementation   ; Functions:

void %test() {
        br label %endif.0.i

endif.0.i:		; preds = %then.0.i
	br bool false, label %then.3.i, label %endif.3.i

then.3.i:		; preds = %endif.0.i
	br label %endif.3.i

endif.3.i:		; preds = %endif.0.i, %then.3.i
	%inxm.0.i = phi int [ 8, %then.3.i ], [ 0, %endif.0.i ]
	%doinner.1.i = phi int [ 0, %then.3.i ], [ 0, %endif.0.i ]
	br label %loopentry.2.i

loopentry.2.i:		; preds = %endif.3.i, %no_exit.2.i
	%inxk.0.i = phi int [ %tmp.210.i, %no_exit.2.i ], [ 0, %endif.3.i ]
	br label %no_exit.2.i

no_exit.2.i:		; preds = %loopentry.2.i
	%tmp.210.i = sub int %inxk.0.i, %inxm.0.i
	%tmp.213.i = add int %tmp.210.i, 0
	br label %loopentry.2.i
}