[Mlir-commits] [mlir] [mlir][Vector] Add a rewrite pattern for gather over a strided memref (PR #72991)

Diego Caballero llvmlistbot at llvm.org
Mon Nov 27 06:15:03 PST 2023


================
@@ -168,6 +244,6 @@ struct Gather1DToConditionalLoads : OpRewritePattern<vector::GatherOp> {
 
 void mlir::vector::populateVectorGatherLoweringPatterns(
     RewritePatternSet &patterns, PatternBenefit benefit) {
-  patterns.add<FlattenGather, Gather1DToConditionalLoads>(patterns.getContext(),
-                                                          benefit);
+  patterns.add<FlattenGather, RemoveStrideFromGatherSource,
----------------
dcaballe wrote:

Just double checking here: the other patterns won't match if gather has a strided memref, right?

https://github.com/llvm/llvm-project/pull/72991


More information about the Mlir-commits mailing list