[all-commits] [llvm/llvm-project] 2360e5: [AArch64] Combine fadd into fcmla

David Green via All-commits all-commits at lists.llvm.org
Tue Mar 28 03:10:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2360e53ec6fd5f55f6ab05522d7546c3647a59a2
      https://github.com/llvm/llvm-project/commit/2360e53ec6fd5f55f6ab05522d7546c3647a59a2
  Author: David Green <david.green at arm.com>
  Date:   2023-03-28 (Tue, 28 Mar 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/neon-vcmla.ll

  Log Message:
  -----------
  [AArch64] Combine fadd into fcmla

This adds a target combine for `fadd(a, vcmla(b, c, d))` -> `vcmla(fadd(a, b), b, c)`,
pushing the fadd into the operands of the fcmla, which can help simplify away some
additions.

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




More information about the All-commits mailing list