[Mlir-commits] [mlir] [mlir][tosa] Remove Tosa MulOp Commutative attribute (PR #163312)

Luke Hutton llvmlistbot at llvm.org
Mon Oct 20 08:11:29 PDT 2025


================
@@ -1172,3 +1172,14 @@ func.func @reduce_sum_constant_aggressive() -> tensor<2x3xi32> {
   %res1 = tosa.add %res0, %argmax1 : (tensor<2x3xi32>, tensor<2x3xi32>) -> tensor<2x3xi32>
   return %res1 : tensor<2x3xi32>
 }
+
+// -----
+
+// no_shift_op_reorder checks that %arg1 won't be reorder with %0
+// by the folder pass.
+func.func @no_shift_op_reorder (%arg0 : tensor<44x1xi16>, %arg1 : tensor<1xi8>) -> tensor<44x57xi32> {
----------------
lhutton1 wrote:

nit: missing a `CHECK-LABEL` line here

https://github.com/llvm/llvm-project/pull/163312


More information about the Mlir-commits mailing list