This is an archive of the discontinued LLVM Phabricator instance.

[mlir][memref] Use current source type in getCanonicalSubViewResultType.
ClosedPublic

Authored by gysit on Dec 9 2021, 7:04 AM.

Details

Summary

Use the current instead of the new source type to compute the rank-reduction map in getCanonicalSubViewResultType. Otherwise, the computation of the rank-reduction map fails when folding a cast into a subview since the strides of the new source type cannot be related to the strides of the current result type.

Depends On D115428

Diff Detail

Event Timeline

gysit created this revision.Dec 9 2021, 7:04 AM
gysit requested review of this revision.Dec 9 2021, 7:04 AM
nicolasvasilache accepted this revision.Dec 13 2021, 1:22 AM

Let's please implement the 2 entry point solution so that things are clearer + doc evolution (it will make things a bit clearer for future users).
Accepting conditioned on that.

This revision is now accepted and ready to land.Dec 13 2021, 1:22 AM
gysit updated this revision to Diff 393869.Dec 13 2021, 6:20 AM

Address comment.