[PATCH] D146407: [AArch64] Combine fadd into fcmla

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 01:23:27 PDT 2023


dmgreen created this revision.
dmgreen added reviewers: NickGuy, samtebbs, labrinea, SjoerdMeijer.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D146407

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/neon-vcmla.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146407.506493.patch
Type: text/x-patch
Size: 5780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230320/c56a9a0a/attachment.bin>


More information about the llvm-commits mailing list