[all-commits] [llvm/llvm-project] 287aa6: [DAGCombiner] Use generalized pattern match for vi...

Yeting Kuo via All-commits all-commits at lists.llvm.org
Thu May 4 07:02:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 287aa6c4536408413b860e61fca0318a27214cf3
      https://github.com/llvm/llvm-project/commit/287aa6c4536408413b860e61fca0318a27214cf3
  Author: Yeting Kuo <yeting.kuo at sifive.com>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/RISCV/rvv/fold-vp-fsub-and-vp-fmul.ll

  Log Message:
  -----------
  [DAGCombiner] Use generalized pattern match for visitFSUBForFMACombine.

The patch makes visitFSUBForFMACombine serve vp.fsub too. It helps DAGCombiner
to fuse vp.fsub and vp.fmul patterns to vp.fma.

Reviewed By: luke

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




More information about the All-commits mailing list