[all-commits] [llvm/llvm-project] 81bdb4: [Matrix] Simplify matmuls with scalars

Visoiu Mistrih Francis via All-commits all-commits at lists.llvm.org
Fri Sep 2 15:50:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81bdb4068d92de50e25e4c214960aa5b9598dbbe
      https://github.com/llvm/llvm-project/commit/81bdb4068d92de50e25e4c214960aa5b9598dbbe
  Author: Francis Visoiu Mistrih <francisvm at yahoo.com>
  Date:   2022-09-02 (Fri, 02 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
    A llvm/test/Transforms/LowerMatrixIntrinsics/after-transpose-opts.ll

  Log Message:
  -----------
  [Matrix] Simplify matmuls with scalars

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

Differential Revision: https://reviews.llvm.org/D130177




More information about the All-commits mailing list