1 ; Test skipping inlining when the callsite is unreachable (for both mandatory
2 ; and non-mandatory cases)
3 ; REQUIRES: llvm_inliner_model_autogenerated
4 ; RUN: opt -passes=inliner-ml-advisor-release -S < %s | FileCheck %s --check-prefix=CHECK
6 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
7 target triple = "x86_64-grtev4-linux-gnu"
13 some_bb: ; unreachable - has no predecessors
28 some_bb: ; unreachable - has no predecessors
39 attributes #0 = { alwaysinline }
42 ; CHECK-LABEL: some_bb
43 ; CHECK-NEXT: call i32 @f2
45 ; CHECK-LABEL: some_bb
46 ; CHECK-NEXT: call i32 @f4