The SubTensorInsertOp has a requirement that dest type and result
type match. Just folding the tensor.cast operation violates this and
creates verification errors during canonicalization. Also fix other
canonicalization methods that werent inserting casts properly.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | ||
---|---|---|
2390–2392 ↗ | (On Diff #327591) | [optional] I feel llvm::zip(op->getResults(), newOp->getResults()) looks better to me. |
mlir/test/Dialect/Linalg/canonicalize.mlir | ||
782 ↗ | (On Diff #327591) | Should this be dim %arg0, %c1? |
792 ↗ | (On Diff #327591) | Let's add a new line at the end of file? |
mlir/test/Dialect/Linalg/canonicalize.mlir | ||
---|---|---|
782 ↗ | (On Diff #327591) | +1 |