[PATCH] D26005: AMDGPU: Don't use stack space for SGPR->VGPR spills
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 12:29:38 PDT 2016
arsenm created this revision.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng, kzhuravl, qcolombet.
Herald added a reviewer: tstellarAMD.
Before frame offsets are calculated, try to eliminate the
frame indexes used by SGPR spills. Then we can delete them
I think for now we can be sure that no other instruction
will be re-using the same frame indexes. It should be easy
to notice if this assumption ever breaks since everything
asserts if it tries to use a dead frame index later.
The unused emergency stack slot seems to still be left behind,
so an additional 4 bytes is still wasted.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 21456 bytes
Desc: not available
More information about the llvm-commits