Fusing a constant with a linalg.generic operation can result in the
fused operation being illegal since the loop bound computation
fails. Avoid such fusions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Dialect/Linalg/fusion-tensor.mlir | ||
---|---|---|
667 | Shouldn't we consider folding that into a splat constant tensor<3xf32>? |
mlir/test/Dialect/Linalg/fusion-tensor.mlir | ||
---|---|---|
667 | Yes, that would be a good idea. Doing this at Linalg level would be interesting, but seems harder. Seems easier to do at a higher level (say MHLO or TOSA). |
Shouldn't we consider folding that into a splat constant tensor<3xf32>?