This is an archive of the discontinued LLVM Phabricator instance.

[mlir][memref] Fix MemrefToLLVM lowering pattern for memref.transpose
ClosedPublic

Authored by ubfx on Aug 31 2023, 8:56 AM.

Details

Summary

The lowering pattern to LLVM for memref.transpose has a bug where
instead of transposing from (source) -> (dest) it actually transposes
(dest) -> (source). This patch fixes the bug and updates the test.

Fix https://github.com/llvm/llvm-project/issues/65145

Diff Detail

Event Timeline

ubfx created this revision.Aug 31 2023, 8:56 AM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
ubfx requested review of this revision.Aug 31 2023, 8:56 AM
ubfx edited the summary of this revision. (Show Details)Aug 31 2023, 9:01 AM
This revision is now accepted and ready to land.Aug 31 2023, 9:07 AM
ubfx updated this revision to Diff 555751.Sep 4 2023, 7:56 AM

rebase

ubfx added a comment.Sep 5 2023, 3:32 AM

Thank you for the review @nicolasvasilache, can you land this for me? The tests have passed, just the phabricator update job seems to have failed because phab is very slow.

I'll have a look at changing the permutation maps to integer indices and submit that directly as github PR.

This revision was landed with ongoing or failed builds.Sep 14 2023, 4:13 AM
This revision was automatically updated to reflect the committed changes.