This is an archive of the discontinued LLVM Phabricator instance.

[TTI] Add X86 target specific version of getPointersChainCost.
ClosedPublic

Authored by vdmitrie on Mar 14 2023, 3:30 PM.

Details

Summary

When all the pointers are off the same base address and have known
distances to each other these differences can be encoded into displacements
in x86 arch. So the only cost that matters is cost of the base GEP.

Diff Detail

Event Timeline

vdmitrie created this revision.Mar 14 2023, 3:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2023, 3:30 PM
vdmitrie requested review of this revision.Mar 14 2023, 3:30 PM
RKSimon accepted this revision.Mar 15 2023, 7:36 AM

LGTM

This revision is now accepted and ready to land.Mar 15 2023, 7:36 AM