This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix bug in FoldSubview with rank reducing subview
ClosedPublic

Authored by ThomasRaoux on Sep 28 2021, 9:34 AM.

Details

Summary

Fix how we calculate the new permutation map of the transfer ops.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Sep 28 2021, 9:34 AM
ThomasRaoux requested review of this revision.Sep 28 2021, 9:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 28 2021, 9:34 AM
mravishankar accepted this revision.Sep 28 2021, 11:25 AM

Oof! Thanks for fixing this.

Could you add a test for what happens if one of the inner dimensions is "rank-reduced"?

This revision is now accepted and ready to land.Sep 28 2021, 11:25 AM

Adding test for inner rank reduction

Oof! Thanks for fixing this.

Could you add a test for what happens if one of the inner dimensions is "rank-reduced"?

Good point, added a test

This revision was landed with ongoing or failed builds.Sep 28 2021, 1:18 PM
This revision was automatically updated to reflect the committed changes.