This is already done with VGPR immediates and saves 4 bytes.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D24420
AMDGPU: Use brev for materializing SGPR constants ClosedPublic Authored by arsenm on Sep 9 2016, 12:50 PM.
Details
Diff Detail Event Timelinearsenm updated this object.
This revision is now accepted and ready to land.Sep 9 2016, 5:52 PM
Revision Contents
Diff 70886 lib/Target/AMDGPU/SIShrinkInstructions.cpp
test/CodeGen/AMDGPU/bitreverse-inline-immediates.ll
test/CodeGen/AMDGPU/fcopysign.f32.ll
test/CodeGen/AMDGPU/fcopysign.f64.ll
test/CodeGen/AMDGPU/llvm.round.f64.ll
test/CodeGen/AMDGPU/llvm.round.ll
|
else-if can be changed to an else and ReverseImm can be moved inside the else part.