[AArch64][SVE] Add patterns to select masked add/sub instructions
authorCullen Rhodes <cullen.rhodes@arm.com>
Mon, 25 Jul 2022 06:37:57 +0000 (06:37 +0000)
committerCullen Rhodes <cullen.rhodes@arm.com>
Mon, 25 Jul 2022 07:22:05 +0000 (07:22 +0000)
commit836f790bb17296520b06f275b16b53ae243b0369
tree7d5dd670ab52c551bf6e57881763d2fe7b2996aa
parentc4f356e519749d19e5cd445e25743ba2dbe66226
[AArch64][SVE] Add patterns to select masked add/sub instructions

When lowering add(a, select(mask, b, splat(0))) the sel instruction can
be removed by using predicated add/sub instructions.

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D129751
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/test/CodeGen/AArch64/sve-masked-int-arith.ll