Page MenuHomePhabricator

[mlir] Add a TensorLoadToMemref canonicalization

Authored by nicolasvasilache on Feb 19 2021, 1:36 AM.



A folder of tensor_load + tensor_to_memref exists but it only applies when
source and destination memref types are the same.

This revision adds a canonicalize tensor_load + tensor_to_memref to memref_cast
when type mismatches prevent folding to kick in.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Feb 19 2021, 1:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2021, 1:36 AM
ftynse accepted this revision.Feb 19 2021, 1:37 AM
This revision is now accepted and ready to land.Feb 19 2021, 1:37 AM
This revision was landed with ongoing or failed builds.Feb 19 2021, 1:47 AM
This revision was automatically updated to reflect the committed changes.