This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Add canonicalization for tensor.cast from extract_slice
ClosedPublic

Authored by ThomasRaoux on May 19 2022, 6:58 AM.

Details

Summary

Propagate static size information into extract_slice producer if
possible.

Diff Detail

Event Timeline

ThomasRaoux created this revision.May 19 2022, 6:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 6:58 AM
ThomasRaoux requested review of this revision.May 19 2022, 6:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 6:58 AM
mravishankar accepted this revision.May 19 2022, 9:44 AM

Looks fine to me apart from the errant printf.

mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
268

Errant printf?

This revision is now accepted and ready to land.May 19 2022, 9:44 AM
ThomasRaoux added inline comments.May 19 2022, 9:46 AM
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
268

ouch...

remove debug code

This revision was landed with ongoing or failed builds.May 19 2022, 10:35 AM
This revision was automatically updated to reflect the committed changes.