This is an archive of the discontinued LLVM Phabricator instance.

[mlir][std] Add DimOp folding for dim(tensor_load(m)) -> dim(m).
ClosedPublic

Authored by nicolasvasilache on Nov 4 2020, 3:20 AM.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Nov 4 2020, 3:20 AM
ftynse accepted this revision.Nov 4 2020, 4:26 AM
ftynse added inline comments.
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
1567

this-> doesn't look necessary here

This revision is now accepted and ready to land.Nov 4 2020, 4:26 AM
bkramer added inline comments.Nov 4 2020, 4:27 AM
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
1567

If I remember correctly the contract for fold is to return itself when the op is modified. Is that not necessary here?

nicolasvasilache marked 2 inline comments as done.Nov 4 2020, 4:58 AM
This revision was landed with ongoing or failed builds.Nov 4 2020, 5:10 AM
This revision was automatically updated to reflect the committed changes.