[all-commits] [llvm/llvm-project] 68cc35: [InstCombine] Matrix multiplication negation optim...

Zain Jaffal via All-commits all-commits at lists.llvm.org
Tue Sep 20 11:51:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68cc35d52cff2d8345c6dffbed0d1b36b20f824f
      https://github.com/llvm/llvm-project/commit/68cc35d52cff2d8345c6dffbed0d1b36b20f824f
  Author: Zain Jaffal <z_jaffal at apple.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/matrix-multiplication-negation.ll

  Log Message:
  -----------
  [InstCombine] Matrix multiplication negation optimisation

If one of the operands in a matrix multiplication is negated we can optimise the equation by moving the negation to the smallest element of the operands or the result.

Reviewed By: spatel, fhahn

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




More information about the All-commits mailing list