This allows vectorizing linalg reductions without changing the operation
order. Therefore this produce a valid vectorization even if operations
are not associative.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D129535
[mlir][vector] Add accumulator operand to MultiDimReduce op ClosedPublic Authored by ThomasRaoux on Jul 11 2022, 7:34 PM.
Details Summary This allows vectorizing linalg reductions without changing the operation
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 11 2022, 8:13 PM Closed by commit rG051b36ba2857: [mlir][vector] Add accumulator operand to MultiDimReduce op (authored by ThomasRaoux). · Explain WhyJul 12 2022, 7:36 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 443937 mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
mlir/lib/Dialect/Vector/Transforms/VectorMultiDimReductionTransforms.cpp
mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
mlir/lib/Dialect/Vector/Transforms/VectorUnrollDistribute.cpp
mlir/test/Dialect/Linalg/transform-op-vectorize.mlir
mlir/test/Dialect/Linalg/vectorization.mlir
mlir/test/Dialect/Vector/canonicalize.mlir
mlir/test/Dialect/Vector/invalid.mlir
mlir/test/Dialect/Vector/ops.mlir
mlir/test/Dialect/Vector/vector-multi-reduction-lowering.mlir
mlir/test/Dialect/Vector/vector-multi-reduction-outer-lowering.mlir
mlir/test/Dialect/Vector/vector-reduce-to-contract.mlir
mlir/test/Dialect/Vector/vector-unroll-options.mlir
|