File: 2007-04-30-LandingPadBranchFolding.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (63 lines) | stat: -rw-r--r-- 2,066 bytes parent folder | download | duplicates (12)
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
63
; RUN: llc < %s
; PR1228

	%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Alloc_hider" = type { ptr }
	%"struct.std::locale" = type { ptr }
	%"struct.std::locale::_Impl" = type { i32, ptr, i32, ptr, ptr }
	%"struct.std::locale::facet" = type { ptr, i32 }
	%"struct.std::string" = type { %"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Alloc_hider" }

define void @_ZNKSt6locale4nameEv(ptr %agg.result) personality ptr @__gxx_personality_v0 {
entry:
	%tmp105 = icmp eq ptr null, null		; <i1> [#uses=1]
	br i1 %tmp105, label %cond_true, label %cond_true222

cond_true:		; preds = %entry
	invoke void @_ZNSs14_M_replace_auxEjjjc( )
			to label %cond_next1328 unwind label %cond_true1402

cond_true222:		; preds = %cond_true222, %entry
	%tmp207 = call i32 @strcmp( )		; <i32> [#uses=1]
	%tmp208 = icmp eq i32 %tmp207, 0		; <i1> [#uses=2]
	%bothcond1480 = and i1 %tmp208, false		; <i1> [#uses=1]
	br i1 %bothcond1480, label %cond_true222, label %cond_next226.loopexit

cond_next226.loopexit:		; preds = %cond_true222
	%phitmp = xor i1 %tmp208, true		; <i1> [#uses=1]
	br i1 %phitmp, label %cond_false280, label %cond_true235

cond_true235:		; preds = %cond_next226.loopexit
	invoke void @_ZNSs6assignEPKcj( )
			to label %cond_next1328 unwind label %cond_true1402

cond_false280:		; preds = %cond_next226.loopexit
	invoke void @_ZNSs7reserveEj( )
			to label %invcont282 unwind label %cond_true1402

invcont282:		; preds = %cond_false280
	invoke void @_ZNSs6appendEPKcj( )
			to label %invcont317 unwind label %cond_true1402

invcont317:		; preds = %invcont282
	ret void

cond_next1328:		; preds = %cond_true235, %cond_true
	ret void

cond_true1402:		; preds = %invcont282, %cond_false280, %cond_true235, %cond_true
  %lpad = landingpad { ptr, i32 }
            cleanup
  ret void
}

declare void @_ZNSs14_M_replace_auxEjjjc()

declare i32 @strcmp()

declare void @_ZNSs6assignEPKcj()

declare void @_ZNSs7reserveEj()

declare void @_ZNSs6appendEPKcj()

declare i32 @__gxx_personality_v0(...) addrspace(0)