This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Transform] Fix applyToOne corner case when no op is matched.
ClosedPublic

Authored by nicolasvasilache on Jun 23 2022, 12:16 PM.

Details

Summary

Such situations manifest themselves with an empty payload which ends up producing empty results.
In such cases, we still want to match the transform op contract and return as many empty SmallVector<Operation*>
as the op requires.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jun 23 2022, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2022, 12:16 PM
ThomasRaoux accepted this revision.Jun 23 2022, 12:17 PM
This revision is now accepted and ready to land.Jun 23 2022, 12:17 PM
This revision was landed with ongoing or failed builds.Jun 23 2022, 12:19 PM
This revision was automatically updated to reflect the committed changes.