The pass uses computeSuffixProduct method which only allows static
shapes. This revision adds an early-exit for dynamic cases to avoid
crash.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Accepting since it is needed to fix downstream failures, but a proper fix would be to handle dynamic cases as well
mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp | ||
---|---|---|
65–71 | Could you add some comments for the early exit? I think computeSuffixProduct can be made to handle dynamic shapes, but isn't part of this patch |
mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp | ||
---|---|---|
65–71 | The other version of computeSuffixProduct can handle dynamic cases using AffineExpr ops, but that needs more work.. |
Could you add some comments for the early exit? I think computeSuffixProduct can be made to handle dynamic shapes, but isn't part of this patch