Page MenuHomePhabricator

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

Authored by gysit on Tue, Nov 23, 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.Tue, Nov 23, 6:40 AM
gysit requested review of this revision.Tue, Nov 23, 6:40 AM
gysit updated this revision to Diff 389206.Tue, Nov 23, 7:51 AM

Add additional test with a loop that prevents hoisting.

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

Remove temporary check.

This revision was automatically updated to reflect the committed changes.