; RUN: opt -S %s -passes='function(instcombine),sample-profile' -sample-profile-file=%S/Inputs/einline.prof | FileCheck %s ; Checks if both call and invoke can be inlined early if their inlined ; instances are hot in profile. target triple = "x86_64-unknown-linux-gnu" @_ZTIi = external constant ptr ; Function Attrs: uwtable define void @_Z3foov() #0 personality ptr @__gxx_personality_v0 !dbg !6 { %1 = alloca ptr %2 = alloca i32 %3 = alloca i32, align 4 ; CHECK: call void @no_inline call void @no_inline(), !dbg !16 ; CHECK-NOT: call call void @_ZL3barv(), !dbg !9 ; CHECK-NOT: invoke invoke void @_ZL3barv() to label %4 unwind label %5, !dbg !10 ;