[all-commits] [llvm/llvm-project] d48ac7: [DAGCombine] Fold the (fma -x, y, -z) to -(fma x, ...

QingShan Zhang via All-commits all-commits at lists.llvm.org
Wed Jan 8 20:37:51 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d48ac7d54d8a096677c84cfb2928400e05b918ea
      https://github.com/llvm/llvm-project/commit/d48ac7d54d8a096677c84cfb2928400e05b918ea
  Author: QingShan Zhang <qshanz at cn.ibm.com>
  Date:   2020-01-09 (Thu, 09 Jan 2020)

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

  Log Message:
  -----------
  [DAGCombine] Fold the (fma -x, y, -z) to -(fma x, y, z)

This is a positive combination as long as the NEG is NOT free,
as we are reducing the number of NEG from two to one.

Differential Revision: https://reviews.llvm.org/D72312




More information about the All-commits mailing list