[all-commits] [llvm/llvm-project] f32b3e: [mlir][memref] Fix index delinearization for Colla...

Felix Schneider via All-commits all-commits at lists.llvm.org
Wed Oct 11 22:12:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f32b3e1caa8f2fa9edd8fbb7f4a37b664638c187
      https://github.com/llvm/llvm-project/commit/f32b3e1caa8f2fa9edd8fbb7f4a37b664638c187
  Author: Felix Schneider <30509320+ubfx at users.noreply.github.com>
  Date:   2023-10-12 (Thu, 12 Oct 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] Fix index delinearization for CollapseShapeOp folding (#68833)

The `resolveSourceIndicesCollapseShape` method is used to compute
indices into the source `MemRef` of a `CollapseShapeOp` from the
collapsed indices. This method didn't check for dynamic sizes of the
source shape which led to a crash.

Fix https://github.com/llvm/llvm-project/issues/68483




More information about the All-commits mailing list