This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix assertion when printing unreachable functions
ClosedPublic

Authored by arsenm on Jul 25 2022, 7:35 AM.

Details

Reviewers
jweightman
rampitec
Group Reviewers
Restricted Project
Summary

Since 814a0abccefdd2e52b1b507f21ce842b689dbedd, this would break if we
had a function in the module that becomes dead in any codegen IR
pass. The function wasn't deleted since it was initially used in dead
code, but is detached from the call graph and doesn't appear in the PO
traversal. Do a second walk over the module to populate the resources
of any functions which weren't already processed.

Diff Detail

Event Timeline

arsenm created this revision.Jul 25 2022, 7:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2022, 7:35 AM
arsenm requested review of this revision.Jul 25 2022, 7:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2022, 7:35 AM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 447459.Jul 25 2022, 1:55 PM
This revision is now accepted and ready to land.Jul 27 2022, 9:01 AM