This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add canonicalization from `tensor_cast` to `dim` op.
ClosedPublic

Authored by mravishankar on Dec 17 2020, 2:34 PM.

Details

Summary

Fold a tensor_cast -> dim to take the dim of the original tensor.

Diff Detail

Event Timeline

mravishankar created this revision.Dec 17 2020, 2:34 PM
mravishankar requested review of this revision.Dec 17 2020, 2:34 PM

nit: Can you remove Linalg from the tags?

nicolasvasilache accepted this revision.Dec 17 2020, 2:40 PM
This revision is now accepted and ready to land.Dec 17 2020, 2:40 PM

nit: Can you remove Linalg from the tags?

I dont see where the tag is.

nit: Can you remove Linalg from the tags?

I dont see where the tag is.

You have [mlir][Linalg] in the title of the commit.

silvas accepted this revision.Dec 17 2020, 2:41 PM
mravishankar retitled this revision from [mlir][Linalg] Add canonicalization from `tensor_cast` to `dim` op. to [mlir] Add canonicalization from `tensor_cast` to `dim` op..Dec 17 2020, 2:43 PM

nit: Can you remove Linalg from the tags?

I dont see where the tag is.

You have [mlir][Linalg] in the title of the commit.

:D Done.

This revision was landed with ongoing or failed builds.Dec 17 2020, 2:49 PM
This revision was automatically updated to reflect the committed changes.