[PATCH] D129989: [AArch64][SVE] Recognize splats of f16 -0.0 for fadda

Rosie Sumpter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 18 01:47:29 PDT 2022


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

Depends on D129623 <https://reviews.llvm.org/D129623>

In D129623 <https://reviews.llvm.org/D129623> patterns were added to fold fadda
instructions with selects of a -0.0 splat vector into an fadda
predicated with the select mask. This didn't work for splat vectors
with f16 element types because -0.0 wasn't recognized as a legal f16
immediate.

This patch recognizes f16 types as legal for SVE and adds the necessary
pattern for fadda.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129989

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
  llvm/test/CodeGen/AArch64/sve-fadda-select.ll
  llvm/test/CodeGen/AArch64/sve-fp-reduce.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129989.445418.patch
Type: text/x-patch
Size: 7280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220718/34d58b6b/attachment.bin>


More information about the llvm-commits mailing list