File tree 1 file changed +11
-2
lines changed
mlir/include/mlir/Dialect/Vector/Transforms
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,17 @@ void populateVectorTransferCollapseInnerMostContiguousDimsPatterns(
161
161
void populateSinkVectorOpsPatterns (RewritePatternSet &patterns,
162
162
PatternBenefit benefit = 1 );
163
163
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>
166
175
void populateSinkVectorMemOpsPatterns (RewritePatternSet &patterns,
167
176
PatternBenefit benefit = 1 );
168
177
You can’t perform that action at this time.
0 commit comments