[PATCH] D148118: [AArch64][DAGCombiner]: combine <2xi64> mul add/sub.

hassnaaHamdi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 12 04:57:53 PDT 2023


hassnaa-arm created this revision.
hassnaa-arm added reviewers: paulwalker-arm, david-arm.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls.
Herald added a project: All.
hassnaa-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

64-bit vector mul is not supported in NEON,
so we use the SVE's mul.
To improve the performance, we can go one step further,
and use SVE's add/sub, so that we can use SVE's mla/mls.
That works on these patterns:
// This works on the patterns of:
//   add v1, (mul v2, v3)
//   sub v1, (mul v2, v3)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148118

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/aarch64-combine-add-sub-mul.ll
  llvm/test/CodeGen/AArch64/sve-fixed-length-int-rem.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148118.512781.patch
Type: text/x-patch
Size: 13789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230412/635fb9e5/attachment.bin>


More information about the llvm-commits mailing list