[PATCH] D147723: [AArch64][SVE] Extend predicated fma patterns to negative zero

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 09:46:59 PDT 2023


dmgreen created this revision.
dmgreen added reviewers: david-arm, sdesmalen, paulwalker-arm, c-rhodes.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This extends the patterns added in D130564 <https://reviews.llvm.org/D130564> for fma to also handle negative 0.0. -0.0 is the identity element for fadd so comes up in vectorized loops.

The same basic idea applies to D130564 <https://reviews.llvm.org/D130564>, but nsz should no longer be needed for the fadd case, and is for fsub (which is really only added for completeness).


https://reviews.llvm.org/D147723

Files:
  llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
  llvm/lib/Target/AArch64/SVEInstrFormats.td
  llvm/test/CodeGen/AArch64/sve-fp-combine.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147723.511450.patch
Type: text/x-patch
Size: 9470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230406/655e54e2/attachment.bin>


More information about the llvm-commits mailing list