12 lines · plain
1// RUN: mlir-opt --pass-pipeline="builtin.module(test-greedy-patterns)" %s | FileCheck %s2 3// CHECK-LABEL: func @test_reorder_constants_and_match4func.func @test_reorder_constants_and_match(%arg0 : i32) -> (i32) {5 // CHECK: %[[CST:.+]] = arith.constant 436 %cst = arith.constant 43 : i327 // CHECK: return %[[CST]]8 %y = "test.op_commutative2"(%cst, %arg0) : (i32, i32) -> i329 %x = "test.op_commutative2"(%y, %arg0) : (i32, i32) -> i3210 return %x : i3211}12