This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Skip stack-arg dbg objects while fixing the dead frame indices
ClosedPublic

Authored by cdevadas on Nov 2 2022, 11:29 AM.

Details

Summary

Both SGPR->VGPR and VGPR->AGPR spilling code give a fixup to the
spill frame indices referred in debug instructions so that they
can be entirely removed. We should skip the stack argument debug
objects while looking inside the bitvector with FI as the index
that tracks the spill indices being processed. The stack args will
have negative indices and would crash while accessing the bitvector.

Diff Detail

Event Timeline

cdevadas created this revision.Nov 2 2022, 11:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2022, 11:29 AM
cdevadas requested review of this revision.Nov 2 2022, 11:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2022, 11:30 AM
arsenm accepted this revision.Nov 2 2022, 4:22 PM
This revision is now accepted and ready to land.Nov 2 2022, 4:22 PM
This revision was landed with ongoing or failed builds.Nov 4 2022, 3:13 AM
This revision was automatically updated to reflect the committed changes.