[AArch64][SVE] Combine predicated FMUL/FADD into FMA
authorMatt <matthew.devereau@arm.com>
Tue, 12 Oct 2021 10:18:59 +0000 (10:18 +0000)
committerMatt <matthew.devereau@arm.com>
Wed, 27 Oct 2021 11:41:23 +0000 (11:41 +0000)
commitfc28a2f8ced4ff3565f2c47fead824a017c25d21
treea81b9d27e9e24e2f0111b556053fdbbd43a5cfb1
parent8689f5e6e77394528155b624d74557790278a407
[AArch64][SVE] Combine predicated FMUL/FADD into FMA

Combine FADD and FMUL intrinsics into FMA when the result of the FMUL is an FADD operand
with one only use and both use the same predicate.

Differential Revision: https://reviews.llvm.org/D111638
llvm/include/llvm/IR/Operator.h
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Transforms/InstCombine/AArch64/sve-intrinsic-fmla.ll [new file with mode: 0644]