[AArch64][SVE] Predicated mla/mls patterns
authorDavid Green <david.green@arm.com>
Mon, 5 Jun 2023 09:08:57 +0000 (10:08 +0100)
committerDavid Green <david.green@arm.com>
Mon, 5 Jun 2023 09:08:57 +0000 (10:08 +0100)
commit2b4807ba044230ed6243f5c3a1329a9344de758d
tree5a25b025602e3a03b9ffb184bb8a92279cbec45f
parentb447dc5a4704bef8ced95495aa8d9ea477a26814
[AArch64][SVE] Predicated mla/mls patterns

To go with D149267 and D149967, this adds predicated mla/mls patterns, selected
from select(mask, add(a, mul(b, c)), a) -> mla(a, mask, b, c). The existing
patterns are eventually removed by D149967.

Differential Revision: https://reviews.llvm.org/D149969
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/test/CodeGen/AArch64/sve-pred-selectop2.ll