This is an archive of the discontinued LLVM Phabricator instance.

Support affine.load/store ops in fold-memref-subview-ops pass
ClosedPublic

Authored by bondhugula on Jan 30 2022, 6:01 AM.

Details

Summary

Support affine.load/store ops in fold-memref-subview ops pass. The
existing pass just "inlines" the subview operation on load/stores by
inserting affine.apply ops in front of the memref load/store ops: this
is by design always consistent with the semantics on affine.load/store
ops and the same would work even more naturally/intuitively with the
latter. This update leads to a net zero change to lines of code.

Diff Detail

Event Timeline

bondhugula created this revision.Jan 30 2022, 6:01 AM
bondhugula requested review of this revision.Jan 30 2022, 6:01 AM
bondhugula edited reviewers, added: ftynse; removed: rriddle.Jan 30 2022, 6:02 AM
mravishankar accepted this revision.Jan 30 2022, 7:49 PM

Neat! Thanks!

This revision is now accepted and ready to land.Jan 30 2022, 7:49 PM