This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Vector] Fold InsertStridedSliceOp of ExtractStridedSliceOp.
ClosedPublic

Authored by jacquesguan on Jun 30 2022, 4:27 AM.

Details

Summary

This patch supports to fold InsertStridedSliceOp(ExtractStridedSliceOp(dst), dst) to dst.

Diff Detail

Event Timeline

jacquesguan created this revision.Jun 30 2022, 4:27 AM
jacquesguan requested review of this revision.Jun 30 2022, 4:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2022, 4:27 AM
Mogball requested changes to this revision.Jun 30 2022, 1:38 PM
Mogball added inline comments.
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
2232–2249

Because these are required to be I64ArrayAttrs, you can directly do pointer comparisons.

This revision now requires changes to proceed.Jun 30 2022, 1:38 PM

Address comment.

jacquesguan marked an inline comment as done.Jun 30 2022, 8:20 PM
jacquesguan added inline comments.
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
2232–2249

Done.

Mogball accepted this revision.Jun 30 2022, 8:21 PM
This revision is now accepted and ready to land.Jun 30 2022, 8:21 PM
This revision was automatically updated to reflect the committed changes.
jacquesguan marked an inline comment as done.