This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Define priorities for register classes
ClosedPublic

Authored by arsenm on Apr 22 2016, 12:03 PM.

Details

Summary

Allocating larger register classes first should give better allocation results (and more importantly for myself, make the lit tests more stable with respect to scheduler changes).

This is a suggestion to work on, I did not bother to fix the lit tests.

Diff Detail

Event Timeline

MatzeB updated this revision to Diff 54697.Apr 22 2016, 12:03 PM
MatzeB retitled this revision from to AMDGPU: Define priorities for register classes.
MatzeB updated this object.
MatzeB added reviewers: tstellarAMD, arsenm.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
MatzeB updated this revision to Diff 54698.Apr 22 2016, 12:05 PM

Upload correct patch.

arsenm added inline comments.Apr 22 2016, 3:55 PM
lib/Target/AMDGPU/SIRegisterInfo.td
278–280

Does it matter on the nonallocatable classes?

arsenm commandeered this revision.May 18 2016, 6:18 PM
arsenm edited reviewers, added: MatzeB; removed: arsenm.
arsenm updated this revision to Diff 57722.May 18 2016, 6:19 PM
arsenm removed rL LLVM as the repository for this revision.

Update tests

MatzeB added inline comments.May 18 2016, 6:23 PM
lib/Target/AMDGPU/SIRegisterInfo.td
278–280

No. Priorities only affect the order in which liveintervals are allocated. By nature we will not allocate non-allocatable classes, so this was unnecessary.

MatzeB accepted this revision.May 20 2016, 8:11 PM
MatzeB edited edge metadata.

LGTM from my side.

This revision is now accepted and ready to land.May 20 2016, 8:11 PM
arsenm closed this revision.May 20 2016, 9:01 PM

r270312