[Mlir-commits] [mlir] [Linalg] Add pattern to push down extract slice through linalg generic op (PR #154162)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Aug 18 11:53:09 PDT 2025


================
@@ -1918,6 +1918,11 @@ void populateDataLayoutPropagationPatterns(
     RewritePatternSet &patterns,
     const ControlPropagationFn &controlPackUnPackPropagation);
 
+/// Patterns to bubble up or down extract slice across other operations.
+void populateExtractSlicePropagationPatterns(
----------------
MaheshRavishankar wrote:

I think this needs to be split. The upward propagation, and downward propagation are complimentary functions. Very easy to get stuck in a loop.

I think this method makes sense only for "pushing down" slices like it is done here. 

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


More information about the Mlir-commits mailing list