This allow more accurate modeling of the side effects and allow dead code elimination to remove dead transfer ops.
Details
Diff Detail
Event Timeline
do we need similar extensions for the other load/store flavors (masked load/store, gather/scatter, compress/expand)?
[if so, please let's wait until my CL is in to avoid conflicts, since I have been making some mods to those ops]
mlir/test/Conversion/VectorToSCF/vector-to-loops.mlir | ||
---|---|---|
25 | Add a slightly more clarifying comment on why that is here, below too | |
mlir/test/Dialect/Vector/canonicalize.mlir | ||
671 | can you indent this line up with the other parameters? |
We do need to mark those as well, it looks like right now DCE wouldn't be able to remove a dead masked_load for instance. If those ops are not going to be expanded to tensor it can done in a slightly simpler way, we can just add MemRead<$base> to the properties directly in tablegen. I can definitely wait and update all of them once your patch lands.
Add a slightly more clarifying comment on why that is here, below too