File: 2007-07-12-ExitDomInfo.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (45 lines) | stat: -rw-r--r-- 1,370 bytes parent folder | download | duplicates (6)
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
; RUN: opt < %s -passes='loop-mssa(simple-loop-unswitch),instcombine' -verify-memoryssa -disable-output

@str3 = external constant [3 x i8]		; <ptr> [#uses=1]

define i32 @stringSearch_Clib(i32 %count) {
entry:
	%ttmp25 = icmp sgt i32 %count, 0		; <i1> [#uses=1]
	br i1 %ttmp25, label %bb36.preheader, label %bb44

bb36.preheader:		; preds = %entry
	%ttmp33 = icmp slt i32 0, 250		; <i1> [#uses=1]
	br label %bb36.outer

bb36.outer:		; preds = %bb41, %bb36.preheader
	br i1 %ttmp33, label %bb.nph, label %bb41

bb.nph:		; preds = %bb36.outer
	%ttmp8 = icmp eq ptr null, null		; <i1> [#uses=1]
	%ttmp6 = icmp eq ptr null, null		; <i1> [#uses=1]
	%tmp31 = call i32 @strcspn( ptr null, ptr @str3 )		; <i32> [#uses=1]
	br i1 %ttmp8, label %cond_next, label %cond_true

cond_true:		; preds = %bb.nph
	ret i32 0

cond_next:		; preds = %bb.nph
	br i1 %ttmp6, label %cond_next28, label %cond_true20

cond_true20:		; preds = %cond_next
	ret i32 0

cond_next28:		; preds = %cond_next
	%tmp33 = add i32 %tmp31, 0		; <i32> [#uses=1]
	br label %bb41

bb41:		; preds = %cond_next28, %bb36.outer
	%c.2.lcssa = phi i32 [ 0, %bb36.outer ], [ %tmp33, %cond_next28 ]		; <i32> [#uses=1]
	br i1 false, label %bb36.outer, label %bb44

bb44:		; preds = %bb41, %entry
	%c.01.1 = phi i32 [ 0, %entry ], [ %c.2.lcssa, %bb41 ]		; <i32> [#uses=1]
	ret i32 %c.01.1
}

declare i32 @strcspn(ptr, ptr)