[PATCH] D49977: AMDGPU: Reduce code size with fcanonicalize (fneg x)

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 30 04:08:07 PDT 2018


arsenm created this revision.
arsenm added a reviewer: rampitec.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

When fcanonicalize is lowered to a mul, we can
use -1.0 for free and avoid the cost of the bigger
encoding for source modifers.


https://reviews.llvm.org/D49977

Files:
  lib/Target/AMDGPU/AMDGPUInstructions.td
  lib/Target/AMDGPU/SIInstructions.td
  test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
  test/CodeGen/AMDGPU/fcanonicalize.f16.ll
  test/CodeGen/AMDGPU/fcanonicalize.ll
  test/CodeGen/AMDGPU/fneg-combines.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49977.157939.patch
Type: text/x-patch
Size: 25466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180730/4336e2cc/attachment.bin>


More information about the llvm-commits mailing list