[all-commits] [llvm/llvm-project] 9b2186: [mlir][linalg] Fix invalid IR in `FoldInsertPadInt...

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Dec 18 21:18:07 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b21866feaea912bdb2d76060ef79da8a4905570
      https://github.com/llvm/llvm-project/commit/9b21866feaea912bdb2d76060ef79da8a4905570
  Author: Matthias Springer <me at m-sp.org>
  Date:   2023-12-19 (Tue, 19 Dec 2023)

  Changed paths:
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

  Log Message:
  -----------
  [mlir][linalg] Fix invalid IR in `FoldInsertPadIntoFill` (#74418)

`FoldInsertPadIntoFill` used to generate an invalid
`tensor.insert_slice` op:
```
error: expected type to be 'tensor<?x?x?xf32>' or a rank-reduced version. (size mismatch)
```

This commit fixes tests such as
`mlir/test/Dialect/Linalg/canonicalize.mlir` when verifying the IR after
each pattern application (#74270).




More information about the All-commits mailing list