This is an archive of the discontinued LLVM Phabricator instance.

[LoopVectorize][AArch64] Add TTI hook preferPredicatedReductionSelect
ClosedPublic

Authored by david-arm on Jul 14 2022, 5:21 AM.

Details

Summary

By default if SVE is enabled we want the select instruction used for
reductions to be inside the loop, rather than outside. This makes it
possible for the backend to fold the select into the operation to
produce a single predicated add, fadd, etc.

Diff Detail

Event Timeline

david-arm created this revision.Jul 14 2022, 5:21 AM
david-arm requested review of this revision.Jul 14 2022, 5:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2022, 5:21 AM
Matt added a subscriber: Matt.Jul 14 2022, 10:49 AM

It is an idiom in this file to not say override.

kmclaughlin accepted this revision.Jul 19 2022, 7:50 AM

This change looks good to me!

This revision is now accepted and ready to land.Jul 19 2022, 7:50 AM
This revision was landed with ongoing or failed builds.Jul 20 2022, 1:33 AM
This revision was automatically updated to reflect the committed changes.