; RUN: opt < %s -instcombine -sample-profile -sample-profile-file=%S/Inputs/einline.prof -S | 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 i8* ; Function Attrs: uwtable define void @_Z3foov() #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) !dbg !6 { %1 = alloca i8* %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 ;