This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Fix pad hoisting.
ClosedPublic

Authored by nicolasvasilache on Feb 10 2021, 7:12 AM.

Details

Summary

This revision fixes the indexing logic into the packed tensor that result from hoisting padding. Previously, the index was incorrectly set to the loop induction variable when in fact we need to compute the iteration count (i.e. (iv - lb).ceilDiv(step)).

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Feb 10 2021, 7:12 AM
bkramer accepted this revision.Feb 10 2021, 8:24 AM

looks good

This revision is now accepted and ready to land.Feb 10 2021, 8:24 AM
This revision was landed with ongoing or failed builds.Feb 10 2021, 8:54 AM
This revision was automatically updated to reflect the committed changes.