[all-commits] [llvm/llvm-project] 23f2b8: [AArch64][DAGCombiner]: combine <2xi64> mul add/sub.
hassnaaHamdi via All-commits
all-commits at lists.llvm.org
Mon Apr 24 04:55:44 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 23f2b865372d6f4712b360e3ac0d0d84f214c8ae
https://github.com/llvm/llvm-project/commit/23f2b865372d6f4712b360e3ac0d0d84f214c8ae
Author: Hassnaa Hamdi <hassnaa.hamdi at arm.com>
Date: 2023-04-24 (Mon, 24 Apr 2023)
Changed paths:
M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
A llvm/test/CodeGen/AArch64/aarch64-combine-add-sub-mul.ll
M llvm/test/CodeGen/AArch64/sve-fixed-length-int-rem.ll
Log Message:
-----------
[AArch64][DAGCombiner]: combine <2xi64> mul add/sub.
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:
add v1, (mul v2, v3)
sub v1, (mul v2, v3)
Reviewed By: david-arm, paulwalker-arm
Differential Revision: https://reviews.llvm.org/D148118
More information about the All-commits
mailing list