AMDGPU: Materialize sign bits with bfrev
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 11 Mar 2016 07:42:49 +0000 (07:42 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 11 Mar 2016 07:42:49 +0000 (07:42 +0000)
commit9a19c240c0011836675d4563b1414ab739e7b744
tree627c33188997bcdf65fe058e89e2b7fe7671092f
parent6098cbbd2c6de04bba89ab4292349f63fc3c3384
AMDGPU: Materialize sign bits with bfrev

If a constant is the same as the reverse of an inline immediate,
this is 4 bytes smaller than having to embed a 32-bit literal.

llvm-svn: 263201
llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
llvm/test/CodeGen/AMDGPU/bitreverse-inline-immediates.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/fmaxnum.ll
llvm/test/CodeGen/AMDGPU/fminnum.ll
llvm/test/CodeGen/AMDGPU/fneg-fabs.f64.ll
llvm/test/CodeGen/AMDGPU/imm.ll