[PATCH] D101762: [Matrix] Fold the transpose into the matmul operand used to fetch scalars
Adam Nemet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 6 16:18:54 PDT 2021
anemet added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp:1361
+ auto *EltType = cast<VectorType>(MatMul->getType())->getElementType();
+ ShapeInfo LShape(MatMul->getArgOperand(2), MatMul->getArgOperand(3));
----------------
fhahn wrote:
> Those changes seem quite isolated form the other code in the function. Might be worth to have them in a separate function and call it before `LowerMatrixMultiplyFused`? Otherwise I think it would be good to adjust the name/comment for the function.
I think it's good to have this central function to dispatch all fusing opportunities for multiply. Let me update the comment.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101762/new/
https://reviews.llvm.org/D101762
More information about the llvm-commits
mailing list