This is an archive of the discontinued LLVM Phabricator instance.

[DominanceFrontier] fix addToFrontier to use insert
ClosedPublic

Authored by wenju on Jul 16 2023, 10:20 PM.

Details

Summary

No new lits are added since addToFrontier is only used in MachineDominanceFrontier::addToFrontier.

Diff Detail

Event Timeline

wenju created this revision.Jul 16 2023, 10:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2023, 10:20 PM
wenju requested review of this revision.Jul 16 2023, 10:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2023, 10:20 PM
arsenm added a comment.Aug 1 2023, 5:55 PM

MachineDominanceFrontier::addToFrontier.

Where is this used?

wenju added a comment.Aug 1 2023, 6:33 PM

MachineDominanceFrontier::addToFrontier.

Where is this used?

MachineDominanceFrontier::addToFrontier isn't used. I don't have downstream user of it either.
I notice this is probably a typo in DominanceFrontierBase::addToFrontier while investigating another issue.

arsenm accepted this revision.Aug 2 2023, 11:39 AM

I guess if it's only downstream users we just have to trust it. It is suspicious that an "addTo" function was doing an erase

This revision is now accepted and ready to land.Aug 2 2023, 11:39 AM
This revision was automatically updated to reflect the committed changes.