[PATCH] D27906: InstCombine: Add fma + fabs/fneg transforms

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 18 15:17:04 PST 2016


arsenm created this revision.
arsenm added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: nhaehnle, wdng.

fma (fneg x), (fneg y), z -> fma x, y, z
fma (fabs x), (fabs x), z -> fma x, x, z


https://reviews.llvm.org/D27906

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/CodeGen/AMDGPU/fma.ll
  test/Transforms/InstCombine/fma.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27906.81897.patch
Type: text/x-patch
Size: 9044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161218/32c4de23/attachment-0001.bin>


More information about the llvm-commits mailing list