10 lines · plain
1// RUN: mlir-opt %s -test-legalize-patterns="test-legalize-folding-mode=after-patterns" | FileCheck %s2 3// CHECK-LABEL: @fold_legalization4func.func @fold_legalization() -> i32 {5 // CHECK-NOT: op_in_place_self_fold6 // CHECK: 977 %1 = "test.op_in_place_self_fold"() : () -> (i32)8 "test.return"(%1) : (i32) -> ()9}10