This is an archive of the discontinued LLVM Phabricator instance.

Reapply "AMDGPU: Scavenge register instead of findUnusedReg"
ClosedPublic

Authored by arsenm on Mar 26 2019, 2:07 PM.

Details

Reviewers
rampitec
Summary

This reapplies r356149, using the correct overload of findUnusedReg
which passes the current iterator.

This worked most of the time, because the scavenger iterator was moved
at the end of the frame index loop in PEI. This would fail if the
spill was the first instruction. This was further hidden by the fact
that the scavenger wasn't passed in for normal frame index
elimination.

Diff Detail

Event Timeline

arsenm created this revision.Mar 26 2019, 2:07 PM
This revision is now accepted and ready to land.Mar 26 2019, 2:38 PM
arsenm closed this revision.Mar 27 2019, 10:30 AM

r357098