This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Move patterns to remove dead arguments and results out of canonicalization.
ClosedPublic

Authored by mravishankar on Nov 15 2022, 7:00 PM.

Details

Summary

The patterns to remove dead arguments and results of linalg.generic
operations are not necessarily canonicalizations. Instead a new entry
point populateEraseUnusedOperandsAndResults is added to allow using
these patterns when needed. The transformations that rely on this
pattern for cleanup now include these patterns explicitly.

Diff Detail

Event Timeline

mravishankar created this revision.Nov 15 2022, 7:00 PM
mravishankar requested review of this revision.Nov 15 2022, 7:00 PM

Add missing new line at EOF

nicolasvasilache accepted this revision.Nov 16 2022, 3:48 AM

Awesome, thank you Mahesh!

This revision is now accepted and ready to land.Nov 16 2022, 3:48 AM
This revision was landed with ongoing or failed builds.Nov 16 2022, 8:01 AM
This revision was automatically updated to reflect the committed changes.