History log of /llvm-project/mlir/lib/Dialect/Linalg/Transforms/FoldAddIntoDest.cpp (Results 1 – 1 of 1)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3, llvmorg-19.1.2
# 94cf80d6 03-Oct-2024 Rolf Morel <rolf.morel@intel.com>

[MLIR][Linalg] Pattern to fold AddOp to accumulation via contraction op's dest (#110514)

Replaces a linalg.add with one operand the single user of a contraction,
which has a zero-filled, "identity-

[MLIR][Linalg] Pattern to fold AddOp to accumulation via contraction op's dest (#110514)

Replaces a linalg.add with one operand the single user of a contraction,
which has a zero-filled, "identity-mapped" destination and is dominated
by the `other` operand, by the contraction with `other` as its dest.

Benefits include elision of an elementwise op, namely the linalg.add,
and removing a tensor.empty as a destination which is likely to require
an allocation upon bufferization.

show more ...