brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 376548b Raw
41 lines · plain
1; REQUIRES: llvm_inliner_model_autogenerated2 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 %s6 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=TWO11 12target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"13target triple = "x86_64-unknown-linux-gnu"14 15define dso_local noundef i32 @_Z3fooi(i32 noundef %y) {16entry:17  ret i32 %y18}19 20define dso_local noundef i32 @main(i32 noundef %argc, ptr noundef %argv) {21entry:22  %call = call noundef i32 @_Z3fooi(i32 noundef %argc)23  ret i32 %call24}25 26; CHECK: [MLInlineAdvisor] Nodes:27; CHECK-SAME: 2 Edges: 128; CHECK: [MLInlineAdvisor] Nodes:29; CHECK-SAME: 2 Edges: 130; CHECK: [MLInlineAdvisor] Nodes:31; CHECK-SAME: 2 Edges: 132; CHECK: [MLInlineAdvisor] Nodes:33; CHECK-SAME: 2 Edges: 034; CHECK-NOT: [MLInlineAdvisor] Nodes:35 36; TWO: [MLInlineAdvisor] Nodes:37; TWO-SAME: 2 Edges: 138; TWO: [MLInlineAdvisor] Nodes:39; TWO-SAME: 2 Edges: 040; TWO-NOT: [MLInlineAdvisor] Nodes:41