This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Move handling of AGPR copies to a separate function
ClosedPublic

Authored by arsenm on Jul 1 2020, 10:08 AM.

Details

Reviewers
rampitec
kzhuravl
Summary

This is in preparation for fixing multiple problems with the way AGPR
copies are handled, but this change is NFC itself. First, it's relying
on recursively calling copyPhysReg, which is losing information
necessary to get correct super register handling.

Second, it's constructing a new RegScavenger and doing a O(N^2) walk
on every single sub-spill for every AGPR tuple copy. Third, it's using
the forward form of the scavenger, and not using the preferred
backwards scan.

Diff Detail

Event Timeline

arsenm created this revision.Jul 1 2020, 10:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2020, 10:08 AM
rampitec accepted this revision.Jul 1 2020, 10:34 AM
This revision is now accepted and ready to land.Jul 1 2020, 10:34 AM
arsenm updated this revision to Diff 274980.Jul 1 2020, 6:14 PM

Restructure to avoid dead path in future patch

rampitec accepted this revision.Jul 2 2020, 9:58 AM