[PATCH] D130492: [AArch64][SVE] Add patterns to select mla/mls

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 10:16:02 PDT 2022


paulwalker-arm added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td:350
+                            [(int_aarch64_sve_mla node:$pred, node:$op1, node:$op2, node:$op3),
+                             (add node:$op1, (AArch64mul_p_oneuse node:$pred, node:$op2, node:$op3)),
+                             // add(a, select(mask, mul(b, c), splat(0))) -> mla(a, mask, b, c)
----------------
paulwalker-arm wrote:
> FYI: This is consistent with how the code works today but I suspect we'll eventually pull this pattern out because it should really map to the `FMLA_ZPZZZ_UNDEF` pseudo instructions.
`s/FMLA_ZPZZZ_UNDEF/MLA_ZPZZZ_UNDEF`

NOTE: These don't exist today.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130492/new/

https://reviews.llvm.org/D130492



More information about the llvm-commits mailing list