This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Refactor ComplexDeinterleaving to run identification on Values instead of Instructions
ClosedPublic

Authored by igor.kirillov on Jun 21 2023, 10:47 AM.

Details

Summary

This change will make it easier to add identification of complex constants
in future patches.

Diff Detail

Event Timeline

igor.kirillov created this revision.Jun 21 2023, 10:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 10:47 AM
igor.kirillov requested review of this revision.Jun 21 2023, 10:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 10:47 AM
igor.kirillov added inline comments.Jun 23 2023, 5:58 AM
llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
551

It looks like FNegs is not used anywhere. Maybe I should delete it, or you had a plan for it?

igor.kirillov added inline comments.
llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
551
NickGuy added inline comments.Jun 23 2023, 6:05 AM
llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
551

The instructions within FNegs were initially stored within the the composite nodes, and were used to ensure that all the users were contained within the same graph. Now that the approach for that check has changed, I don't see a need for keeping FNegs around in its current state.
Feel free to remove it, we can always readd it if a need arises.

igor.kirillov edited the summary of this revision. (Show Details)

Remove unused code

igor.kirillov marked an inline comment as done.Jun 26 2023, 12:37 PM
NickGuy accepted this revision.Jun 30 2023, 6:13 AM
This revision is now accepted and ready to land.Jun 30 2023, 6:13 AM
This revision was landed with ongoing or failed builds.Jul 3 2023, 3:36 AM
This revision was automatically updated to reflect the committed changes.