This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fixes to hoist padding
ClosedPublic

Authored by nicolasvasilache on Mar 24 2021, 4:25 AM.

Details

Summary

Fix the BlockAndValueMapping update that was missing entries for scf.for op's blockIterArgs.
Skip cloning subtensors of the padded tensor as the logic for these is separate.
Add a filter to drop side-effecting ops.

Tests are beefed up to verify the IR is sound in all hoisting configurations for 2-level 3-D tiled matmul.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Mar 24 2021, 4:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2021, 4:25 AM

Drop spurious change.

pifon2a accepted this revision.Mar 24 2021, 4:49 AM
This revision is now accepted and ready to land.Mar 24 2021, 4:49 AM
This revision was landed with ongoing or failed builds.Mar 24 2021, 4:56 AM
This revision was automatically updated to reflect the committed changes.