[all-commits] [llvm/llvm-project] 1e504b: [MLIR] Specify new padOp's output type in DropPadU...

Daniel Garvey via All-commits all-commits at lists.llvm.org
Thu Jul 31 03:52:00 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e504bef2001d45f38dafd2ca2d8d02c7a2e0261
      https://github.com/llvm/llvm-project/commit/1e504bef2001d45f38dafd2ca2d8d02c7a2e0261
  Author: Daniel Garvey <danimal197 at gmail.com>
  Date:   2025-07-31 (Thu, 31 Jul 2025)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
    M mlir/test/Dialect/Linalg/drop-unit-extent-dims.mlir

  Log Message:
  -----------
  [MLIR] Specify new padOp's output type in DropPadUnitDims (#150706)

Previously when dropping unit dim from a pad with mixed dynamic/static
input/output shapes, the resulting shape would take on the Type of the
input, resulting in invalid IR.

Also did some minor cleanup to the formatting of the
`drop_unit_dim_corresponding_to_dynamic_dim` test to make it match the
rest of the file.

---------

Signed-off-by: dan <danimal197 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list