This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Avoid generating illegal operations during elementwise fusion.
ClosedPublic

Authored by mravishankar on Jan 18 2022, 1:35 PM.

Details

Summary

In some cases, fusion can produce illegal operations if after fusion
the range of some of the loops cannot be computed from shapes of its
operands. Check for this case and abort the fusion if this happens.

Diff Detail

Event Timeline

mravishankar created this revision.Jan 18 2022, 1:35 PM
mravishankar requested review of this revision.Jan 18 2022, 1:35 PM
nicolasvasilache added inline comments.
mlir/test/Dialect/Linalg/fusion-elementwise-ops.mlir
968

do we need such complex bodies?

This revision is now accepted and ready to land.Jan 20 2022, 12:49 AM

Rebase and reduce test complexity.