This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Add side-effect information to different load/store ops
ClosedPublic

Authored by ThomasRaoux on Jan 11 2021, 10:38 AM.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Jan 11 2021, 10:38 AM
ThomasRaoux requested review of this revision.Jan 11 2021, 10:38 AM
aartbik added inline comments.Jan 11 2021, 10:43 AM
mlir/test/Dialect/Vector/canonicalize.mlir
688

I would just call this dead_load or dead_mem_load, since gather is sort of a load

698

Can we add tests for dead_mem_store ops as well?

ThomasRaoux marked an inline comment as done.

rename test function

mlir/test/Dialect/Vector/canonicalize.mlir
698

store on memref are never dead on their own and we don't have a pass to handle dead store due to back to back stores to the same address so I don't see a way to test it right now.

aartbik accepted this revision.Jan 11 2021, 11:04 AM
This revision is now accepted and ready to land.Jan 11 2021, 11:04 AM
rriddle added inline comments.Jan 11 2021, 12:00 PM
mlir/include/mlir/Dialect/Vector/VectorOps.td
1321

I don't think the <DefaultResource> is needed on any of these. That is the default.

removed DefaultResource

mlir/include/mlir/Dialect/Vector/VectorOps.td
1321

Removed it, thanks!