[PATCH] D72312: [DAGCombine] Fold the (fma -x, y, -z) to -(fma x, y, z)

qshanz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 23:02:28 PST 2020


steven.zhang updated this revision to Diff 236764.
steven.zhang added a comment.

Use the isNegatibleForFree/getNegatibleExpression mechanism.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72312/new/

https://reviews.llvm.org/D72312

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/PowerPC/combine-fneg.ll
  llvm/test/CodeGen/PowerPC/fma-combine.ll
  llvm/test/CodeGen/PowerPC/qpx-recipest.ll
  llvm/test/CodeGen/PowerPC/recipest.ll
  llvm/test/CodeGen/PowerPC/repeated-fp-divisors.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72312.236764.patch
Type: text/x-patch
Size: 7373 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200108/9495e597/attachment-0001.bin>


More information about the llvm-commits mailing list