This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Clean up some dimension size checks
ClosedPublic

Authored by springerm on Jun 30 2023, 6:51 AM.

Details

Summary
  • Add memref::getMixedSize (same as in the tensor dialect).
  • Simplify in-bounds check in VectorTransferSplitRewritePatterns.cpp and fix off-by-one error in the static in-bounds check.
  • Use "memref::DimOp" instead of createOrFoldDimOp when possible.

Depends On: D154211

Diff Detail

Event Timeline

springerm created this revision.Jun 30 2023, 6:51 AM
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Jun 30 2023, 6:51 AM
Herald added a project: Restricted Project. · View Herald Transcript
dcaballe accepted this revision.Jun 30 2023, 11:10 AM
This revision is now accepted and ready to land.Jun 30 2023, 11:10 AM
This revision was landed with ongoing or failed builds.Jul 3 2023, 12:14 AM
This revision was automatically updated to reflect the committed changes.