brintos

brintos / llvm-project-archived public Read only

0
0
Text · 440 B · 720d17f Raw
13 lines · plain
1// RUN: mlir-opt %s -allow-unregistered-dialect -test-legalize-patterns="test-legalize-folding-mode=never" | FileCheck %s2 3// CHECK-LABEL: @remove_foldable_op(4func.func @remove_foldable_op(%arg0 : i32) -> (i32) {5  // Check that op was not folded.6  // CHECK: "test.op_with_region_fold"7  %0 = "test.op_with_region_fold"(%arg0) ({8    "foo.op_with_region_terminator"() : () -> ()9  }) : (i32) -> (i32)10  "test.return"(%0) : (i32) -> ()11}12 13