[PATCH] D129751: [AArch64][SVE] Add patterns to select masked add/sub instructions

Dinar Temirbulatov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 04:14:50 PDT 2022


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

Currently, we generate "select" operation with one operand of zeros based the mask of active elements we have and then we issue addition or subtraction we the result of "select". But instead we could issue just  masked based addition or subtraction with the mask of active elements.


https://reviews.llvm.org/D129751

Files:
  llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
  llvm/test/CodeGen/AArch64/sve-masked-add-sub.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129751.444585.patch
Type: text/x-patch
Size: 5106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220714/24674a1c/attachment.bin>


More information about the llvm-commits mailing list