19 lines · plain
1// RUN: mlir-opt %s -inline='default-pipeline= inlining-threshold=100' | FileCheck %s2 3// Check that inlining does not happen when the threshold is exceeded.4func.func @callee1(%arg : i32) -> i32 {5 %v1 = arith.addi %arg, %arg : i326 %v2 = arith.addi %v1, %arg : i327 %v3 = arith.addi %v2, %arg : i328 return %v3 : i329}10 11// CHECK-LABEL: func @caller112func.func @caller1(%arg0 : i32) -> i32 {13 // CHECK-NEXT: call @callee114 // CHECK-NEXT: return15 16 %0 = call @callee1(%arg0) : (i32) -> i3217 return %0 : i3218}19