[PATCH] D51424: [ARM] Exchange MAC operands in ARMParallelDSP

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 29 06:52:46 PDT 2018


samparker created this revision.
samparker added a reviewer: SjoerdMeijer.
Herald added a reviewer: javed.absar.
Herald added subscribers: chrib, kristof.beyls.

SMLAD and SMLALD instructions also come in the form of SMLADX and SMLALDX which perform an exchange on their second operand. To support this, more of the loads in the MAC candidates are compared for sequential access and a boolean value has been added to BinOpChain.

AddMACCandiate has been refactored into a small pattern matching state machine to reduce the amount of duplicated code, but also to enable the matching to be more flexible. CreateParallelMACPairs now iterates through all the candidates to find parallel ones.


https://reviews.llvm.org/D51424

Files:
  lib/Target/ARM/ARMParallelDSP.cpp
  test/CodeGen/ARM/smladx-1.ll
  test/CodeGen/ARM/smlaldx-1.ll
  test/CodeGen/ARM/smlaldx-2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51424.163076.patch
Type: text/x-patch
Size: 50679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180829/8e907174/attachment-0001.bin>


More information about the llvm-commits mailing list