This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Use depth first iterator instead of recursive DFS. NFCI.
ClosedPublic

Authored by foad on Mar 12 2021, 10:04 AM.

Details

Summary

The reason for this is to avoid deep recursion in DFS() which can cause
stack overflow on large CFGs, especially on Windows.

Diff Detail

Event Timeline

foad created this revision.Mar 12 2021, 10:04 AM
foad requested review of this revision.Mar 12 2021, 10:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2021, 10:04 AM
foad edited the summary of this revision. (Show Details)Mar 13 2021, 4:15 AM
foad added reviewers: dstuttard, Flakebi.
This revision is now accepted and ready to land.Mar 15 2021, 3:07 AM
This revision was landed with ongoing or failed builds.Mar 15 2021, 3:33 AM
This revision was automatically updated to reflect the committed changes.