[all-commits] [llvm/llvm-project] 247a1a: [mlir][linalg] Use getAsOpFoldResult in padding (N...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Mon Nov 22 05:26:47 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 247a1a55eb6a58199006565d594c6f6c6b58b736
      https://github.com/llvm/llvm-project/commit/247a1a55eb6a58199006565d594c6f6c6b58b736
  Author: Tobias Gysi <gysit at google.com>
  Date:   2021-11-22 (Mon, 22 Nov 2021)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp

  Log Message:
  -----------
  [mlir][linalg] Use getAsOpFoldResult in padding (NFC).

After padding, we introduce a ExtractSliceOp to get the final unpadded result. This revision uses getAsOpFoldResult to compute the size of the unpadded result, which guarantees the result type has a partially static shape if some of the sizes of the unpadded result are statically known. At the moment, we rely on canonicalization to cleanup the types after padding.

Depends On D114085

Reviewed By: nicolasvasilache

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




More information about the All-commits mailing list