[all-commits] [llvm/llvm-project] 5d9de3: [DAGCombine] Allow FMA combine with both FMA and FMAD

Carl Ritson via All-commits all-commits at lists.llvm.org
Fri Aug 27 03:49:54 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d9de3ea1818c247917af23b82b481ac5d40b901
      https://github.com/llvm/llvm-project/commit/5d9de3ea1818c247917af23b82b481ac5d40b901
  Author: Carl Ritson <carl.ritson at amd.com>
  Date:   2021-08-27 (Fri, 27 Aug 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AMDGPU/dagcombine-fma-fmad.ll
    M llvm/test/CodeGen/AMDGPU/fpext-free.ll
    M llvm/test/CodeGen/AMDGPU/mad-combine.ll

  Log Message:
  -----------
  [DAGCombine] Allow FMA combine with both FMA and FMAD

Without this change only the preferred fusion opcode is tested
when attempting to combine FMA operations.
If both FMA and FMAD are available then FMA ops formed prior to
legalization will not be merged post legalization as FMAD becomes
the preferred fusion opcode.

Reviewed By: foad

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




More information about the All-commits mailing list