1 ; REQUIRES: llvm_inliner_model_autogenerated
3 ; RUN: opt -enable-ml-inliner=release -passes=scc-oz-module-inliner \
4 ; RUN: -keep-inline-advisor-for-printing -mandatory-inlining-first=1 \
5 ; RUN: -enable-scc-inline-advisor-printing -S < %s 2>&1 | FileCheck %s
7 ; RUN: opt -enable-ml-inliner=release -passes=scc-oz-module-inliner \
8 ; RUN: -keep-inline-advisor-for-printing -mandatory-inlining-first=0 \
9 ; RUN: -enable-scc-inline-advisor-printing -S < %s 2>&1 \
10 ; RUN: | FileCheck %s --check-prefix=TWO
12 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
13 target triple = "x86_64-unknown-linux-gnu"
15 define dso_local noundef i32 @_Z3fooi(i32 noundef %y) {
20 define dso_local noundef i32 @main(i32 noundef %argc, ptr noundef %argv) {
22 %call = call noundef i32 @_Z3fooi(i32 noundef %argc)
26 ; CHECK: [MLInlineAdvisor] Nodes:
27 ; CHECK-SAME: 2 Edges: 1
28 ; CHECK: [MLInlineAdvisor] Nodes:
29 ; CHECK-SAME: 2 Edges: 1
30 ; CHECK: [MLInlineAdvisor] Nodes:
31 ; CHECK-SAME: 2 Edges: 1
32 ; CHECK: [MLInlineAdvisor] Nodes:
33 ; CHECK-SAME: 2 Edges: 0
34 ; CHECK-NOT: [MLInlineAdvisor] Nodes:
36 ; TWO: [MLInlineAdvisor] Nodes:
37 ; TWO-SAME: 2 Edges: 1
38 ; TWO: [MLInlineAdvisor] Nodes:
39 ; TWO-SAME: 2 Edges: 0
40 ; TWO-NOT: [MLInlineAdvisor] Nodes: