This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Set the immediate cost of GEP operands to 0
ClosedPublic

Authored by dmgreen on Jun 24 2021, 3:12 PM.

Details

Summary

This prevents constant gep operands from being hoisted by the Constant Hoisting pass, leaving them to CodegenPrepare which can usually do a better job at splitting large offsets. This can, in general, improve performance and decrease codesize, especially for v6m where many constants have a high cost.

Diff Detail

Event Timeline

dmgreen created this revision.Jun 24 2021, 3:12 PM
dmgreen requested review of this revision.Jun 24 2021, 3:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2021, 3:12 PM
samtebbs accepted this revision.Jun 29 2021, 5:44 AM

Short and sweet, LGTM

This revision is now accepted and ready to land.Jun 29 2021, 5:44 AM
This revision was landed with ongoing or failed builds.Jun 30 2021, 11:19 AM
This revision was automatically updated to reflect the committed changes.