This is an archive of the discontinued LLVM Phabricator instance.

PEI: Skip dead objects when looking at CSRs
ClosedPublic

Authored by arsenm on Mar 21 2017, 10:54 AM.

Details

Reviewers
MatzeB
Summary

On AMDGPU if an SGPR is spilled to a VGPR, the frame index
is deleted. If there were any CSR SGPRs, this woudl
assert when setting the offset.

Diff Detail

Event Timeline

arsenm created this revision.Mar 21 2017, 10:54 AM
MatzeB accepted this revision.May 2 2017, 11:55 AM

Seems okay to go ahead with this.
However looking around the code it seems we need similar ifs in various other loops inside the file.

This revision is now accepted and ready to land.May 2 2017, 11:55 AM
arsenm closed this revision.May 2 2017, 12:09 PM

r301961