[PATCH] D17931: AMDGPU: Materialize sign bits with bfrev

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 07:35:57 PST 2016


arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.

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.

http://reviews.llvm.org/D17931

Files:
  lib/Target/AMDGPU/SIShrinkInstructions.cpp
  test/CodeGen/AMDGPU/bitreverse-inline-immediates.ll
  test/CodeGen/AMDGPU/fmaxnum.ll
  test/CodeGen/AMDGPU/fminnum.ll
  test/CodeGen/AMDGPU/fneg-fabs.f64.ll
  test/CodeGen/AMDGPU/imm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17931.49961.patch
Type: text/x-patch
Size: 12974 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160307/22297036/attachment.bin>


More information about the llvm-commits mailing list