File: 2011-04-13-SchedCmpJmp.ll

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (62 lines) | stat: -rw-r--r-- 2,880 bytes parent folder | download | duplicates (13)
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: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core2 | FileCheck %s
; Reduced from JavaScriptCore

%"class.JSC::CodeLocationCall" = type { [8 x i8] }
%"class.JSC::JSGlobalData" = type { [4 x i8] }
%"class.JSC::FunctionPtr" = type { ptr }
%"class.JSC::Structure" = type { [4 x i8] }
%"class.JSC::UString" = type { ptr }
%"class.JSC::JSString" = type { [16 x i8], i32, %"class.JSC::UString", i32 }

declare hidden fastcc void @_ZN3JSCL23returnToThrowTrampolineEPNS_12JSGlobalDataENS_16ReturnAddressPtrERS2_(ptr nocapture, ptr, ptr nocapture) nounwind noinline ssp

; Avoid hoisting the test above loads or copies
; CHECK: %entry
; CHECK: test
; CHECK-NOT: mov
; CHECK: je
define i32 @cti_op_eq(ptr nocapture %args) nounwind ssp {
entry:
  %0 = load ptr, ptr null, align 8
  %tobool.i.i.i = icmp ugt ptr undef, inttoptr (i64 281474976710655 to ptr)
  %or.cond.i = and i1 %tobool.i.i.i, undef
  br i1 %or.cond.i, label %if.then.i, label %if.end.i

if.then.i:                                        ; preds = %entry
  br i1 undef, label %if.then.i.i.i, label %_ZN3JSC7JSValue19equalSlowCaseInlineEPNS_9ExecStateES0_S0_.exit

if.then.i.i.i:                                    ; preds = %if.then.i
  %conv.i.i.i.i = trunc i64 undef to i32
  br label %_ZN3JSC7JSValue19equalSlowCaseInlineEPNS_9ExecStateES0_S0_.exit

if.end.i:                                         ; preds = %entry
  br i1 undef, label %land.rhs.i121.i, label %_ZNK3JSC7JSValue8isStringEv.exit122.i

land.rhs.i121.i:                                  ; preds = %if.end.i
  %tmp.i.i117.i = load ptr, ptr undef, align 8
  br label %_ZNK3JSC7JSValue8isStringEv.exit122.i

_ZNK3JSC7JSValue8isStringEv.exit122.i:            ; preds = %land.rhs.i121.i, %if.end.i
  %brmerge.i = or i1 undef, false
  %or.cond = or i1 false, %brmerge.i
  br i1 %or.cond, label %_ZN3JSC7JSValue19equalSlowCaseInlineEPNS_9ExecStateES0_S0_.exit, label %if.then.i92.i

if.then.i92.i:                                    ; preds = %_ZNK3JSC7JSValue8isStringEv.exit122.i
  tail call void @_ZNK3JSC8JSString11resolveRopeEPNS_9ExecStateE(ptr undef, ptr %0) nounwind
  unreachable

_ZN3JSC7JSValue19equalSlowCaseInlineEPNS_9ExecStateES0_S0_.exit: ; preds = %_ZNK3JSC7JSValue8isStringEv.exit122.i, %if.then.i.i.i, %if.then.i

  %1 = load ptr, ptr undef, align 8
  br i1 undef, label %do.end39, label %do.body27

do.body27:                                        ; preds = %_ZN3JSC7JSValue19equalSlowCaseInlineEPNS_9ExecStateES0_S0_.exit
  %2 = getelementptr inbounds ptr, ptr %args, i64 -1
  tail call fastcc void @_ZN3JSCL23returnToThrowTrampolineEPNS_12JSGlobalDataENS_16ReturnAddressPtrERS2_(ptr %1, ptr undef, ptr %2)
  unreachable

do.end39:                                         ; preds = %_ZN3JSC7JSValue19equalSlowCaseInlineEPNS_9ExecStateES0_S0_.exit
  ret i32 undef
}

declare void @_ZNK3JSC8JSString11resolveRopeEPNS_9ExecStateE(ptr, ptr)