1 ; RUN: llc -mtriple=thumbv7-apple-ios -relocation-model=pic -frame-pointer=all -mcpu=cortex-a8 < %s
3 ; CodeGen SplitCriticalEdge() shouldn't try to break edge to a landing pad.
7 %class.FunctionInterpreter.3.15.31 = type { %class.Parser.1.13.29, %class.Parser.1.13.29*, %struct.ParserVariable.2.14.30*, i32 }
8 %class.Parser.1.13.29 = type { i32 (...)**, %class.Parser.1.13.29* }
9 %struct.ParserVariable.2.14.30 = type opaque
10 %struct.ParseErrorMsg.0.12.28 = type { i32, i32, i32 }
12 @_ZTI13ParseErrorMsg = external hidden unnamed_addr constant { i8*, i8* }
13 @"OBJC_IVAR_$_MUMathExpressionDoubleBased.mInterpreter" = external hidden global i32, section "__DATA, __objc_ivar", align 4
14 @"\01L_OBJC_SELECTOR_REFERENCES_14" = external hidden global i8*, section "__DATA, __objc_selrefs, literal_pointers, no_dead_strip"
16 declare i8* @objc_msgSend(i8*, i8*, ...)
18 declare i32 @llvm.eh.typeid.for(i8*) nounwind readnone
20 declare i8* @__cxa_begin_catch(i8*)
22 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i1) nounwind
24 declare void @__cxa_end_catch()
26 declare void @_ZSt9terminatev()
28 define hidden double @t(%0* %self, i8* nocapture %_cmd) optsize ssp personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*) {
30 %call = invoke double undef(%class.FunctionInterpreter.3.15.31* undef) optsize
31 to label %try.cont unwind label %lpad
33 lpad: ; preds = %entry
34 %0 = landingpad { i8*, i32 }
35 catch i8* bitcast ({ i8*, i8* }* @_ZTI13ParseErrorMsg to i8*)
36 br i1 undef, label %catch, label %eh.resume
38 catch: ; preds = %lpad
39 invoke void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, %struct.ParseErrorMsg.0.12.28*)*)(i8* undef, i8* undef, %struct.ParseErrorMsg.0.12.28* undef) optsize
40 to label %invoke.cont2 unwind label %lpad1
42 invoke.cont2: ; preds = %catch
45 try.cont: ; preds = %invoke.cont2, %entry
46 %value.0 = phi double [ 0x7FF8000000000000, %invoke.cont2 ], [ %call, %entry ]
49 lpad1: ; preds = %catch
50 %1 = landingpad { i8*, i32 }
52 invoke void @__cxa_end_catch()
53 to label %eh.resume unwind label %terminate.lpad
55 eh.resume: ; preds = %lpad1, %lpad
56 resume { i8*, i32 } undef
58 terminate.lpad: ; preds = %lpad1
59 %2 = landingpad { i8*, i32 }
64 declare i32 @__gxx_personality_sj0(...)
66 !llvm.module.flags = !{!0, !1, !2, !3}
68 !0 = !{i32 1, !"Objective-C Version", i32 2}
69 !1 = !{i32 1, !"Objective-C Image Info Version", i32 0}
70 !2 = !{i32 1, !"Objective-C Image Info Section", !"__DATA, __objc_imageinfo, regular, no_dead_strip"}
71 !3 = !{i32 4, !"Objective-C Garbage Collection", i32 0}