1 ; RUN: opt -inline < %s -S -o - -inline-threshold=100 | FileCheck %s
3 target datalayout = "p:32:32"
5 @glbl = external global i32
8 declare i32 @__gxx_personality_v0(...)
9 declare i8* @__cxa_begin_catch(i8*)
10 declare void @__cxa_end_catch()
11 declare void @_ZSt9terminatev()
13 define void @inner1() personality i32 (...)* @__gxx_personality_v0 {
15 invoke void @f() to label %cont1 unwind label %terminate.lpad
18 invoke void @f() to label %cont2 unwind label %terminate.lpad
21 invoke void @f() to label %cont3 unwind label %terminate.lpad
24 invoke void @f() to label %cont4 unwind label %terminate.lpad
32 call void @_ZSt9terminatev() noreturn nounwind
36 define void @outer1() {
37 ; CHECK-LABEL: @outer1(
39 ; This call should not get inlined because inner1 actually calls a function
40 ; many times, but it only does so through invoke as opposed to call.
42 ; CHECK: call void @inner1