aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/CodeExtractor/2004-03-17-MissedLiveIns.ll
blob: 3c65f9d70d15bd26e2405be4205c9fb5355efe3a (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
; RUN: llvm-as < %s | opt -loop-extract -disable-output

void %sendMTFValues() {
entry:
	br bool false, label %then.1, label %endif.1

then.1:		; preds = %entry
	br bool false, label %loopentry.6.preheader, label %else.0

endif.1:		; preds = %entry
	ret void

else.0:		; preds = %then.1
	ret void

loopentry.6.preheader:		; preds = %then.1
	br bool false, label %endif.7.preheader, label %loopexit.9

endif.7.preheader:		; preds = %loopentry.6.preheader
	%tmp.183 = add int 0, -1		; <int> [#uses=1]
	br label %endif.7

endif.7:		; preds = %endif.7.preheader, %loopexit.15
	br bool false, label %loopentry.10, label %loopentry.12

loopentry.10:		; preds = %endif.7
	br label %loopentry.12

loopentry.12:		; preds = %endif.7, %loopentry.10
	%ge.2.1 = phi int [ 0, %loopentry.10 ], [ %tmp.183, %endif.7 ]		; <int> [#uses=0]
	br bool false, label %loopexit.14, label %no_exit.11

no_exit.11:		; preds = %loopentry.12
	ret void

loopexit.14:		; preds = %loopentry.12
	br bool false, label %loopexit.15, label %no_exit.14

no_exit.14:		; preds = %loopexit.14
	ret void

loopexit.15:		; preds = %loopexit.14
	br bool false, label %endif.7, label %loopexit.9

loopexit.9:		; preds = %loopentry.6.preheader, %loopexit.15
	ret void
}