[PATCH] D130177: [Matrix] Simplify matmuls with scalars

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 07:59:26 PDT 2022


thegameg created this revision.
thegameg added a reviewer: fhahn.
Herald added subscribers: tschuett, hiraditya.
Herald added a project: All.
thegameg requested review of this revision.
Herald added a project: LLVM.

If one of the operands is a transposed splat, the transpose can be
removed.

This is useful to simplify when transposes are distributed to operands
of a matmul:

- k^T -> k
- (A * k)^t -> A^t * k


https://reviews.llvm.org/D130177

Files:
  llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
  llvm/test/Transforms/LowerMatrixIntrinsics/transpose-opts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130177.446157.patch
Type: text/x-patch
Size: 8591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220720/3afd433f/attachment.bin>


More information about the llvm-commits mailing list