Add transformation to be able to forward transfer_write into transfer_read operation and to be able to remove dead transfer_write when a transfer_write is overwritten before being read.
Details
Diff Detail
Event Timeline
mlir/include/mlir/Dialect/Vector/VectorTransforms.h | ||
---|---|---|
271 | This analysis transfer ops .... -> I cannot parse this part, is something missing? | |
mlir/lib/Dialect/Vector/VectorTransferOpTransforms.cpp | ||
28 | Returns (capital R, possibly s form) | |
31 | can even be a for-loop without body! | |
36 | empty line after (if we enclose longer regions, I prefer more whitespace) also for the closing } | |
56 | period at end, otherwise starts new sentence | |
86 | typo: potentially | |
90 | typoe: overwriting | |
114 | does not need {} | |
156 | typo: dominated | |
171 | to many "it"s | |
mlir/test/Dialect/Vector/vector-transferop-opt.mlir | ||
16 | can you cleanup the layout of this file for 80-colums, so it reads a bit easier |
mlir/include/mlir/Dialect/Vector/VectorTransforms.h | ||
---|---|---|
271 | I removed this sentence as it wasn't clear indeed and didn't add much. |
mlir/include/mlir/Dialect/Vector/VectorUtils.h | ||
---|---|---|
165 | perhaps a bit nitpicky, but I find the isXXX easier to read than the plural areXXX | |
mlir/lib/Dialect/Vector/VectorTransferOpTransforms.cpp | ||
91 | found such a ....? | |
100 | can you make this cascade of if statements a if/elseif/elseif sequence | |
223 | this sentence is missing something | |
224 | typo: opportunity | |
mlir/lib/Dialect/Vector/VectorUtils.cpp | ||
331 | sentence does not flow? |
mlir/lib/Dialect/Vector/VectorTransferOpTransforms.cpp | ||
---|---|---|
100 | I'm not sure there is a nice way to do that since for the second if not all the cases end with a continue. I replaces the second continue with an else, hopefully that makes it clearer. | |
mlir/lib/Dialect/Vector/VectorUtils.cpp | ||
331 | It was part of the code moved. I fixed the sentence based on what I think the original author meant. |
mlir/lib/Dialect/Vector/VectorTransferOpTransforms.cpp | ||
---|---|---|
40 | last nit (but this is subjective so feel free to ignore). The "OpOpt" is a bit of a mouthful. |
This analysis transfer ops .... -> I cannot parse this part, is something missing?