This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Don't reserve XNACK when it's disabled
ClosedPublic

Authored by mareko on Nov 27 2016, 11:12 AM.

Details

Summary

This frees 2 additional scalar registers.

These are results from all of my 3 patches combined:

Polaris:
  Spilled SGPRs: 2231 -> 1517 (-32.00 %)

Tonga:
  Spilled SGPRs: 3829 -> 2608 (-31.89 %)
  Spilled VGPRs: 100 -> 84 (-16.00 %)

Tonga even spills SGPRs via VGPRs to scratch. That's a compute shader
limited to 64 VGPRs.

Diff Detail

Repository
rL LLVM

Event Timeline

mareko updated this revision to Diff 79357.Nov 27 2016, 11:12 AM
mareko retitled this revision from to AMDGPU/SI: Don't reserve XNACK when it's disabled.
mareko updated this object.
tstellarAMD accepted this revision.Nov 28 2016, 7:15 AM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Nov 28 2016, 7:15 AM
This revision was automatically updated to reflect the committed changes.