[Mlir-commits] [mlir] [mlir][fold-memref-alias-ops] Add support for folding memref.expand_shape involving dynamic dims (PR #89093)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon May 6 21:21:23 PDT 2024


================
@@ -155,5 +156,31 @@ void eraseDeadAllocAndStores(RewriterBase &rewriter, Operation *parentOp) {
     rewriter.eraseOp(op);
 }
 
+static SmallVector<OpFoldResult>
+computeSuffixProductIRBlockImpl(Location loc, OpBuilder &builder,
+                                ArrayRef<OpFoldResult> sizes,
+                                OpFoldResult unit) {
+  if (sizes.empty())
----------------
MaheshRavishankar wrote:

This could be folded in. Dont see a reason for the split.

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


More information about the Mlir-commits mailing list