This is an archive of the discontinued LLVM Phabricator instance.

[ArgPromotion] Protect harder against recursive promotion (PR42028)
ClosedPublic

Authored by nikic on Feb 10 2022, 1:47 AM.

Details

Summary

In addition to the self-recursion check, also check whether there is more than one node in the SCC, which implies that there is a larger cycle. I believe checking SCC structure (rather than something like norecurse) is the right thing to do here, because this is specifically about preventing infinite loops over the SCC.

Fixes https://github.com/llvm/llvm-project/issues/42028.

Diff Detail

Event Timeline

nikic created this revision.Feb 10 2022, 1:47 AM
nikic requested review of this revision.Feb 10 2022, 1:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2022, 1:47 AM
This revision is now accepted and ready to land.Feb 10 2022, 11:56 AM
ormris removed a subscriber: ormris.Feb 10 2022, 1:33 PM
This revision was landed with ongoing or failed builds.Feb 11 2022, 12:30 AM
This revision was automatically updated to reflect the committed changes.