[PATCH] D117689: [AArch64][SVE] Fold vselect into predicated fmul

Matt Devereau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 19 08:50:37 PST 2022


MattDevereau created this revision.
MattDevereau added reviewers: peterwaller-arm, bsmith, DavidTruby, david-arm, paulwalker-arm.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
MattDevereau requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Pattern match the following to remove an unnecessary vselect:

(vselect (p) (a) (fmul (a) (b))) => (fmul -> (p) (a) (b))

for fmul, fsub and fadd


https://reviews.llvm.org/D117689

Files:
  llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
  llvm/test/CodeGen/AArch64/sve-fp-reciprocal.ll
  llvm/test/CodeGen/AArch64/sve-fp-vselect.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117689.401263.patch
Type: text/x-patch
Size: 7191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220119/0d851d48/attachment.bin>


More information about the llvm-commits mailing list