[Mlir-commits] [mlir] [MLIR][Linalg] Pattern to fold AddOp to accumulation via contraction op's dest (PR #110514)

Andrzej WarzyƄski llvmlistbot at llvm.org
Wed Oct 2 01:43:28 PDT 2024


================
@@ -870,5 +870,80 @@ getReassociationMapForFoldingUnitDims(ArrayRef<OpFoldResult> mixedSizes) {
   return reassociation;
 }
 
+// Returns true if the value is a constant float or integer.
----------------
banach-space wrote:

Constant or "zero"? Also, is this only meant for scalars?

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


More information about the Mlir-commits mailing list