[all-commits] [llvm/llvm-project] a4c535: [DAGCombiner] Propagate FMF flags in FMA folding

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Sun Sep 13 09:23:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a4c535198643d1541b19f37a468c885a7baa7605
      https://github.com/llvm/llvm-project/commit/a4c535198643d1541b19f37a468c885a7baa7605
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2020-09-14 (Mon, 14 Sep 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/PowerPC/fma-combine.ll

  Log Message:
  -----------
  [DAGCombiner] Propagate FMF flags in FMA folding

DAG combiner folds (fma a 1.0 b) into (fadd a b) but the flag isn't
propagated into new fadd. This patch fixes that.

Some code in visitFMA is redundant and such support for vector constants
is missing. Need follow-up patch to clean.

Reviewed By: spatel

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




More information about the All-commits mailing list