This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Exchange MAC operands in ARMParallelDSP
ClosedPublic

Authored by samparker on Aug 29 2018, 6:52 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

samparker created this revision.Aug 29 2018, 6:52 AM
SjoerdMeijer accepted this revision.Sep 11 2018, 6:49 AM

That's a cool new trick!

This revision is now accepted and ready to land.Sep 11 2018, 6:49 AM
This revision was automatically updated to reflect the committed changes.