This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add a MemRefCastOp canonicalization pattern.
ClosedPublic

Authored by nicolasvasilache on May 5 2020, 11:08 AM.

Details

Summary

This revision adds a conservative canonicalization pattern for MemRefCastOp that are typically inserted during ViewOp and SubViewOp canonicalization.
Ideally such canonicalizations would propagate the type to consumers but this is not a local behavior. As a consequence MemRefCastOp are introduced to keep type compatibility but need to be cleaned up later, in the case where more dynamic behavior than necessary is introduced.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2020, 11:08 AM
mravishankar accepted this revision.May 5 2020, 9:38 PM
This revision is now accepted and ready to land.May 5 2020, 9:38 PM
This revision was automatically updated to reflect the committed changes.