[PATCH] D28783: AMDGPU: Check if users of fneg can fold mods

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 14:57:57 PST 2017


arsenm created this revision.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng, kzhuravl.

In multi-use cases this can save a few instructions.


https://reviews.llvm.org/D28783

Files:
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  test/CodeGen/AMDGPU/fmul-2-combine-multi-use.ll
  test/CodeGen/AMDGPU/fneg-combines.ll
  test/CodeGen/AMDGPU/frem.ll
  test/CodeGen/AMDGPU/v_mac_f16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28783.84601.patch
Type: text/x-patch
Size: 37487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170116/6dd5b3bb/attachment.bin>


More information about the llvm-commits mailing list