File: 2007-02-23-PhiFoldInfLoop.ll

package info (click to toggle)
llvm-toolchain-5.0 1:5.0.1-2~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 553,688 kB
  • sloc: cpp: 2,878,786; ansic: 584,110; asm: 246,252; python: 124,751; objc: 106,925; sh: 21,542; lisp: 8,628; pascal: 5,885; ml: 5,544; perl: 5,312; makefile: 2,208; cs: 2,022; xml: 686; php: 212; csh: 117
file content (31 lines) | stat: -rw-r--r-- 833 bytes parent folder | download | duplicates (29)
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
; RUN: opt < %s -instcombine -S | grep ret
; PR1217

target datalayout = "e-p:32:32"
target triple = "i686-pc-linux-gnu"
	%struct.termbox = type { %struct.termbox*, i32, i32, i32, i32, i32 }


define void @ggenorien() {
entry:
	%tmp68 = icmp eq %struct.termbox* null, null		; <i1> [#uses=1]
	br i1 %tmp68, label %cond_next448, label %bb80

bb80:		; preds = %entry
	ret void

cond_next448:		; preds = %entry
	br i1 false, label %bb756, label %bb595

bb595:		; preds = %cond_next448
	br label %bb609

bb609:		; preds = %bb756, %bb595
	%termnum.6240.0 = phi i32 [ 2, %bb595 ], [ %termnum.6, %bb756 ]		; <i32> [#uses=1]
	%tmp755 = add i32 %termnum.6240.0, 1		; <i32> [#uses=1]
	br label %bb756

bb756:		; preds = %bb609, %cond_next448
	%termnum.6 = phi i32 [ %tmp755, %bb609 ], [ 2, %cond_next448 ]		; <i32> [#uses=1]
	br label %bb609
}