This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Use brev for materializing SGPR constants
ClosedPublic

Authored by arsenm on Sep 9 2016, 12:50 PM.

Details

Reviewers
tstellarAMD
Summary

This is already done with VGPR immediates and saves 4 bytes.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 70886.Sep 9 2016, 12:50 PM
arsenm retitled this revision from to AMDGPU: Use brev for materializing SGPR constants.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
mgrang added a subscriber: mgrang.Sep 9 2016, 12:58 PM
mgrang added inline comments.
lib/Target/AMDGPU/SIShrinkInstructions.cpp
333

else-if can be changed to an else and ReverseImm can be moved inside the else part.

arsenm added inline comments.Sep 9 2016, 1:14 PM
lib/Target/AMDGPU/SIShrinkInstructions.cpp
333

That will increase the level of indentation

tstellarAMD accepted this revision.Sep 9 2016, 5:52 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Sep 9 2016, 5:52 PM

Looks like patch was not committed.

arsenm closed this revision.Nov 1 2016, 4:24 PM

r285765