[PATCH] D133300: [InstCombine] Matrix multiplication negation optimisation
Jim Radford via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 7 08:38:22 PDT 2022
radford added a comment.
In D133300#3771911 <https://reviews.llvm.org/D133300#3771911>, @thegameg wrote:
> Are we looking to also support `-(A * B) -> -A * B` with the negation on the cheapest operand? (might need to check what the required fast math flags are)
We should. In particular, there three places for the negation to go: `-A * B = A * -B = -(A * B)` and any one of the three might be smaller.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133300/new/
https://reviews.llvm.org/D133300
More information about the llvm-commits
mailing list