[all-commits] [llvm/llvm-project] f6897c: [mlir][MemRef] Bail out for unsupported cases in F...

Han-Chung Wang via All-commits all-commits at lists.llvm.org
Fri Aug 11 14:53:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6897c37a2b2ca4037c67dca891062431d6eb869
      https://github.com/llvm/llvm-project/commit/f6897c37a2b2ca4037c67dca891062431d6eb869
  Author: Hanhan Wang <hanchung at google.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
    M mlir/test/Dialect/MemRef/fold-memref-alias-ops.mlir

  Log Message:
  -----------
  [mlir][MemRef] Bail out for unsupported cases in FoldMemRefAliasOps pass

The pass uses `computeSuffixProduct` method which only allows static
shapes. This revision adds an early-exit for dynamic cases to avoid
crash.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D157668




More information about the All-commits mailing list