This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Simplify collectReachableCallees. NFCI.
ClosedPublic

Authored by foad on Jun 22 2021, 5:22 AM.

Details

Summary

Don't use SCC iterators when we're only interested in reachability.
Use df_begin/df_end inline to find reachable nodes.

Diff Detail

Event Timeline

foad created this revision.Jun 22 2021, 5:22 AM
foad requested review of this revision.Jun 22 2021, 5:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2021, 5:22 AM
rampitec accepted this revision.Jun 22 2021, 12:18 PM

LGTM

llvm/lib/Target/AMDGPU/Utils/AMDGPULDSUtils.cpp
54

Reformat the whole comment before the submission.

This revision is now accepted and ready to land.Jun 22 2021, 12:18 PM
This revision was automatically updated to reflect the committed changes.