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
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Vector/VectorTransforms.h | ||
---|---|---|
272 | This analysis transfer ops .... -> I cannot parse this part, is something missing? | |
mlir/lib/Dialect/Vector/VectorTransferOpTransforms.cpp | ||
29 | Returns (capital R, possibly s form) | |
32 | can even be a for-loop without body! | |
37 | empty line after (if we enclose longer regions, I prefer more whitespace) also for the closing } | |
57 | period at end, otherwise starts new sentence | |
87 | typo: potentially | |
91 | typoe: overwriting | |
115 | does not need {} | |
157 | typo: dominated | |
172 | to many "it"s | |
mlir/test/Dialect/Vector/vector-transferop-opt.mlir | ||
17 | can you cleanup the layout of this file for 80-colums, so it reads a bit easier |
mlir/include/mlir/Dialect/Vector/VectorTransforms.h | ||
---|---|---|
272 | 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?