1// RUN: mlir-opt %s -inline='default-pipeline= inlining-threshold=100' | FileCheck %s 2 3// Check that inlining does not happen when the threshold is exceeded. 4func.func @callee1(%arg : i32) -> i32 { 5 %v1 = arith.addi %arg, %arg : i32 6 %v2 = arith.addi %v1, %arg : i32 7 %v3 = arith.addi %v2, %arg : i32 8 return %v3 : i32 9} 10 11// CHECK-LABEL: func @caller1 12func.func @caller1(%arg0 : i32) -> i32 { 13 // CHECK-NEXT: call @callee1 14 // CHECK-NEXT: return 15 16 %0 = call @callee1(%arg0) : (i32) -> i32 17 return %0 : i32 18} 19