This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Perform checks early in hoist padding.
ClosedPublic

Authored by gysit on Nov 23 2021, 6:40 AM.

Details

Summary

Instead of checking for unexpected operations (any operation with a region except for scf::For and padTensorOp or operations with a memory effect) while cloning the packing loop nest perform the checks early. Update dropNonIndexDependencies to check for unexpected operations. Additionally, check all of these operations have index type operands only.

Depends On D114428

Diff Detail

Event Timeline

gysit created this revision.Nov 23 2021, 6:40 AM
gysit requested review of this revision.Nov 23 2021, 6:40 AM
gysit updated this revision to Diff 389206.Nov 23 2021, 7:51 AM

Add additional test with a loop that prevents hoisting.

nicolasvasilache accepted this revision.Nov 24 2021, 8:54 AM
This revision is now accepted and ready to land.Nov 24 2021, 8:54 AM
gysit updated this revision to Diff 389555.Nov 24 2021, 10:58 AM

Remove temporary check.

This revision was automatically updated to reflect the committed changes.