[Mlir-commits] [mlir] Support folding of higher dimensional memeref subviews in XeGPUFoldAliasOps (PR #99593)
Adam Siemieniuk
llvmlistbot at llvm.org
Fri Jul 19 10:53:48 PDT 2024
================
@@ -48,15 +50,51 @@ LogicalResult XegpuCreateNdDescOpSubViewOpFolder::matchAndRewrite(
return rewriter.notifyMatchFailure(descOp, "not a subview producer");
if (!subViewOp.hasUnitStride())
return rewriter.notifyMatchFailure(descOp, "requires unit strides");
+ if (!subViewOp.getSource().getType().hasStaticShape())
+ return rewriter.notifyMatchFailure(descOp, "requires static shape");
----------------
adam-smnk wrote:
Is this restriction necessary?
I think nd-descriptor supports dynamically shaped source.
https://github.com/llvm/llvm-project/pull/99593
More information about the Mlir-commits
mailing list