This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Recognize VIDUP from BUILDVECTORs of additions
ClosedPublic

Authored by dmgreen on Apr 25 2021, 11:59 AM.

Details

Summary

This adds a pattern to recognize VIDUP from BUILD_VECTOR of incrementing adds. This can come up from either geps or adds, and came up recently in D100550. We are just looking for a BUILD_VECTOR where each lane is an add of the first lane with N*i, where i is the lane and N is one of 1, 2, 4, or 8, supported by the VIDUP instruction.

Diff Detail

Event Timeline

dmgreen created this revision.Apr 25 2021, 11:59 AM
dmgreen requested review of this revision.Apr 25 2021, 11:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2021, 11:59 AM
simon_tatham accepted this revision.Apr 26 2021, 3:00 AM

That's a particularly striking improvement for the vectors of u8 :-)

This revision is now accepted and ready to land.Apr 26 2021, 3:00 AM
This revision was landed with ongoing or failed builds.Apr 27 2021, 11:33 AM
This revision was automatically updated to reflect the committed changes.