Currently, there is no option to allow for unrolling a loop up to a specific factor (specified by the user).
The code for doing that is there and there are benefits when unrolling is done to smaller loops (smaller than the factor specified).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Affine/Passes.td | ||
---|---|---|
74 | Format fix please. | |
mlir/lib/Dialect/Affine/Transforms/LoopUnroll.cpp | ||
48 | This isn't properly indented I think - clang-format please. | |
130–132 | Drop trivial braces. | |
mlir/test/Dialect/SCF/loop-unroll.mlir | ||
252 | Nit: drop extra line. | |
260 | Nit: Doesn't make a difference for the test, but you could use affine.store. | |
271 | tore -> store |
mlir/test/Dialect/SCF/loop-unroll.mlir | ||
---|---|---|
266–272 | Nit: Please indent these lines by one more shift. |
Format fix please.