This is an archive of the discontinued LLVM Phabricator instance.

[Matrix] In transpose opts, handle a^t * a^t
ClosedPublic

Authored by anemet on Jun 11 2021, 9:05 AM.

Details

Summary

Without the fix the testcase crashes.

Diff Detail

Event Timeline

anemet created this revision.Jun 11 2021, 9:05 AM
anemet requested review of this revision.Jun 11 2021, 9:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2021, 9:05 AM
anemet added inline comments.Jun 11 2021, 9:08 AM
llvm/test/Transforms/LowerMatrixIntrinsics/transpose-opts.ll
992

removed the #1 locally

fhahn accepted this revision.Jun 11 2021, 9:22 AM

LGTM, thanks!

Without the fix the testcase crashes.

Perhaps worth expanding the message saying that the test crashes because we remove the same instruction twice?

llvm/test/Transforms/LowerMatrixIntrinsics/transpose-opts.ll
1087

Can we use smaller dimensions to check for the issue? IIUC we mostly want to make sure to not remove the transpose twice, so something like 2x2 should also work with the benefit of having a few less check lines.

This revision is now accepted and ready to land.Jun 11 2021, 9:22 AM
This revision was landed with ongoing or failed builds.Jun 11 2021, 9:30 AM
This revision was automatically updated to reflect the committed changes.