[PATCH] D133695: [InstCombine] Optimize multiplication where both operands are negated

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 03:25:12 PDT 2022


fhahn added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:1833
+  case Intrinsic::matrix_multiply: {
+    // Optimise -A * -B = A * B
+    Value *A = II->getArgOperand(0);
----------------
According to other comments in the file, that should just be ` -A * -B -> A * B`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133695/new/

https://reviews.llvm.org/D133695



More information about the llvm-commits mailing list