[Matrix] In transpose opts, handle a^t * a^t
authorAdam Nemet <anemet@apple.com>
Fri, 11 Jun 2021 15:50:07 +0000 (08:50 -0700)
committerAdam Nemet <anemet@apple.com>
Fri, 11 Jun 2021 16:29:43 +0000 (09:29 -0700)
commite0efebb8eb7cec4a90c73d693c9e1e7fbce8d637
tree36fb06197196d6af10134bda23523229339f4604
parentf2cc0427b13ef10e67eed6eab9eefb58e8aef3d9
[Matrix] In transpose opts, handle a^t * a^t

Without the fix the testcase crashes because we remove the same instruction
twice.

Differential Revision: https://reviews.llvm.org/D104127
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
llvm/test/Transforms/LowerMatrixIntrinsics/transpose-opts.ll