Unverified Commit 9b21866f authored by Matthias Springer's avatar Matthias Springer Committed by GitHub
Browse files

[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).
parent 3a087c15
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment