diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-02-21 19:12:08 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-02-21 19:12:08 +0000 |
| commit | e0bf7d02f037a5ba015dd468b483c17350b7d7b4 (patch) | |
| tree | c6718969db45ad3f71106a4a55dceea77e527ce5 /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp | |
| parent | ebfe01c121e304f3e705cfd40536a8ff02ed0547 (diff) | |
| download | bcm5719-llvm-e0bf7d02f037a5ba015dd468b483c17350b7d7b4.tar.gz bcm5719-llvm-e0bf7d02f037a5ba015dd468b483c17350b7d7b4.zip | |
AMDGPU: Don't use stack space for SGPR->VGPR spills
Before frame offsets are calculated, try to eliminate the
frame indexes used by SGPR spills. Then we can delete them
after.
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.
llvm-svn: 295753
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions

