[ARM] Fold fadd of vcmul into vcmla
authorDavid Green <david.green@arm.com>
Wed, 5 Apr 2023 10:52:05 +0000 (11:52 +0100)
committerDavid Green <david.green@arm.com>
Wed, 5 Apr 2023 10:52:05 +0000 (11:52 +0100)
commit4f41a74d82c86e3ee548a8accaf11be7b986e218
tree47e3852b8fa22727170240c7366348f66f387a1c
parent5af5ac4e3ed6ad187cf075501288e62a48560cbf
[ARM] Fold fadd of vcmul into vcmla

This adds an extra tablegen combine for folding fadd(a, vcmul(b, c)) into
vcmla(a, b, c), so long as the fadd is allowed to contract.

Differential Revision: https://reviews.llvm.org/D147201
llvm/lib/Target/ARM/ARMInstrInfo.td
llvm/lib/Target/ARM/ARMInstrMVE.td
llvm/test/CodeGen/Thumb2/mve-complex-deinterleaving-mixed-cases.ll
llvm/test/CodeGen/Thumb2/mve-vcmla.ll