This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Improve register allocation hints for sopk instructions
ClosedPublic

Authored by tstellarAMD on Aug 24 2016, 6:43 PM.

Details

Summary

For shrinking SOPK instructions, we were creating a hint to tell the
register allocator to use the register allocated for src0 for the dst
operand as well. However, this seems to not work sometimes depending
on the order virtual registers are assigned physical registers.

To fix this, I've added a second allocation hint which does the reverse,
asks that the register allocated for dst is used for src0.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Improve register allocation hints for sopk instructions.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm accepted this revision.Aug 24 2016, 7:02 PM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Aug 24 2016, 7:02 PM
This revision was automatically updated to reflect the committed changes.