This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Adjust the cost of integer sum reductions
ClosedPublic

Authored by dmgreen on Jul 18 2021, 8:23 AM.

Details

Summary

This changes the cost to (LT.first-1) * cost(add) + 2, where the cost of an add is assumed to be 1. This brings it inline with the other reductions.

Diff Detail

Event Timeline

dmgreen created this revision.Jul 18 2021, 8:23 AM
dmgreen requested review of this revision.Jul 18 2021, 8:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2021, 8:23 AM
david-arm accepted this revision.Jul 20 2021, 6:48 AM

LGTM! Seems like a sensible change to the cost model.

This revision is now accepted and ready to land.Jul 20 2021, 6:48 AM
This revision was landed with ongoing or failed builds.Jul 22 2021, 10:20 AM
This revision was automatically updated to reflect the committed changes.