File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
mlir/include/mlir/Dialect/Vector/Transforms Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,17 @@ void populateVectorTransferCollapseInnerMostContiguousDimsPatterns(
161161void populateSinkVectorOpsPatterns (RewritePatternSet &patterns,
162162 PatternBenefit benefit = 1 );
163163
164- // / Patterns that remove redundant Vector Ops by re-ordering them with
165- // / memory Ops:
164+ // / Patterns that remove redundant Vector Ops by merging them with load/store
165+ // / ops
166+ // / ```
167+ // / vector.load %arg0[%arg1] : memref<?xf32>, vector<4xf32>
168+ // / vector.extract %0[1] : f32 from vector<4xf32>
169+ // / ```
170+ // / Gets converted to:
171+ // / ```
172+ // / %c1 = arith.constant 1 : index
173+ // / %0 = arith.addi %arg1, %c1 overflow<nsw> : index
174+ // / %1 = memref.load %arg0[%0] : memref<?xf32>
166175void populateSinkVectorMemOpsPatterns (RewritePatternSet &patterns,
167176 PatternBenefit benefit = 1 );
168177
You can’t perform that action at this time.
0 commit comments