This is an archive of the discontinued LLVM Phabricator instance.

Cleanup of Complex Deinterleaving pass (NFCI)
ClosedPublic

Authored by NickGuy on Feb 2 2023, 6:29 AM.

Details

Summary

General cleanup of ComplexDeinterleavingPass; adding more correct checks to make the pass more tolerant, and updating comments to be more accurate.

Diff Detail

Event Timeline

NickGuy created this revision.Feb 2 2023, 6:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 6:29 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
NickGuy requested review of this revision.Feb 2 2023, 6:29 AM
dmgreen added inline comments.Feb 6 2023, 12:52 AM
llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
655–656

I think I find the existing code easier to follow and read. And it is more explicit about matching adds. Neither are super pretty, but I think I would recommend keeping what was there before.

857

This could actually be part of the other patch, if it the first part to introduce single element nodes.

NickGuy updated this revision to Diff 503369.Mar 8 2023, 7:46 AM

This LGTM but please make sure the correct parts are in the correct patches. I don't think this will actually build on its own.

llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
818

I think this is in the wrong patch now?

dmgreen accepted this revision.Mar 10 2023, 4:35 AM

If you can move the identifySymmetricOperation call to the other patch then what remains LGTM. Thanks.

This revision is now accepted and ready to land.Mar 10 2023, 4:35 AM
This revision was landed with ongoing or failed builds.Mar 14 2023, 5:11 AM
This revision was automatically updated to reflect the committed changes.