This is an archive of the discontinued LLVM Phabricator instance.

[ARM][NFC] ParallelDSP tweaks
AbandonedPublic

Authored by samparker on Jul 5 2018, 7:38 AM.

Details

Summary

Convert the ParallelMAC struct to something more generic, it has become 'BinOpSequence' and the ValueList 'VL' is now two: LHS and RHS. This makes iterating and comparing the instructions cleaner.

Also changed some functions to accept reference arguments instead of copying the data out.

Diff Detail

Event Timeline

samparker created this revision.Jul 5 2018, 7:38 AM
SjoerdMeijer added inline comments.Jul 5 2018, 8:01 AM
lib/Target/ARM/ARMParallelDSP.cpp
42

Bikeshedding names: was thinking if e.g. BinOpChain is capturing it better?

459

Should we then also rename argument 'MACCandidates' in to e.g. just Candidates to also make that generic?

490

Same here?

samparker updated this revision to Diff 154363.Jul 6 2018, 1:00 AM

Renamed BinOpSequence to BinOpChain and replaced MACCandidates with Candidates in the Alias functions.

SjoerdMeijer accepted this revision.Jul 6 2018, 1:03 AM

LGTM, cheers!

This revision is now accepted and ready to land.Jul 6 2018, 1:03 AM
samparker abandoned this revision.Jul 11 2018, 7:10 AM

Merging changes into D49020 since it was easier to do with a rebase.