File: 2005-11-28-Crash.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (62 lines) | stat: -rw-r--r-- 2,040 bytes parent folder | download | duplicates (4)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
; RUN: opt < %s -passes=mem2reg -disable-output
; PR670

define void @printk(i32, ...) {
entry:
	%flags = alloca i32		; <i32*> [#uses=2]
	br i1 false, label %then.0, label %endif.0
then.0:		; preds = %entry
	br label %endif.0
endif.0:		; preds = %then.0, %entry
	store i32 0, i32* %flags
	br label %loopentry
loopentry:		; preds = %endif.3, %endif.0
	br i1 false, label %no_exit, label %loopexit
no_exit:		; preds = %loopentry
	br i1 false, label %then.1, label %endif.1
then.1:		; preds = %no_exit
	br i1 false, label %shortcirc_done.0, label %shortcirc_next.0
shortcirc_next.0:		; preds = %then.1
	br label %shortcirc_done.0
shortcirc_done.0:		; preds = %shortcirc_next.0, %then.1
	br i1 false, label %shortcirc_done.1, label %shortcirc_next.1
shortcirc_next.1:		; preds = %shortcirc_done.0
	br label %shortcirc_done.1
shortcirc_done.1:		; preds = %shortcirc_next.1, %shortcirc_done.0
	br i1 false, label %shortcirc_done.2, label %shortcirc_next.2
shortcirc_next.2:		; preds = %shortcirc_done.1
	br label %shortcirc_done.2
shortcirc_done.2:		; preds = %shortcirc_next.2, %shortcirc_done.1
	br i1 false, label %then.2, label %endif.2
then.2:		; preds = %shortcirc_done.2
	br label %endif.2
endif.2:		; preds = %then.2, %shortcirc_done.2
	br label %endif.1
endif.1:		; preds = %endif.2, %no_exit
	br i1 false, label %then.3, label %endif.3
then.3:		; preds = %endif.1
	br label %endif.3
endif.3:		; preds = %then.3, %endif.1
	br label %loopentry
loopexit:		; preds = %loopentry
	br label %endif.4
then.4:		; No predecessors!
	%tmp.61 = load i32, i32* %flags		; <i32> [#uses=0]
	br label %out
dead_block_after_goto:		; No predecessors!
	br label %endif.4
endif.4:		; preds = %dead_block_after_goto, %loopexit
	br i1 false, label %then.5, label %else
then.5:		; preds = %endif.4
	br label %endif.5
else:		; preds = %endif.4
	br label %endif.5
endif.5:		; preds = %else, %then.5
	br label %out
out:		; preds = %endif.5, %then.4
	br label %return
after_ret:		; No predecessors!
	br label %return
return:		; preds = %after_ret, %out
	ret void
}