[PATCH] D32596: [DAGCombine] Transform (fadd A, (fmul B, -2.0)) -> (fsub A, (fadd B, B)).

Chad Rosier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 12:50:43 PDT 2017


mcrosier updated this revision to Diff 97713.
mcrosier added a comment.

-Check for a single use, so that we know the fmul will be folded away.


https://reviews.llvm.org/D32596

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/fadd-combines.ll
  test/CodeGen/AMDGPU/fmuladd.f32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32596.97713.patch
Type: text/x-patch
Size: 4990 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170503/9662e4e0/attachment-0001.bin>


More information about the llvm-commits mailing list