AMDGPU: Fix assertion when printing unreachable functions
Since 814a0abc, 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.
Loading
Please sign in to comment