[Mlir-commits] [mlir] [mlir] Convert `expand_shape` to more static form (PR #112265)

Mehdi Amini llvmlistbot at llvm.org
Tue Oct 22 14:24:04 PDT 2024


================
@@ -1982,14 +1983,90 @@ struct FoldDimOfCollapseShape : public OpRewritePattern<DimOp> {
     return success();
   }
 };
+
+struct ConvertToStaticExpandShape : public OpRewritePattern<ExpandShapeOp> {
----------------
joker-eph wrote:

Can you please document the pattern with a high-level description of what this pattern is doing? That'll be useful to future folks having to debug or improve this :)
(or just skimming the codebase).

Thanks.

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


More information about the Mlir-commits mailing list