This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Adjust vector immediate store materialization cost
ClosedPublic

Authored by reames on Sep 27 2022, 8:52 AM.

Details

Summary

This change updates the costs to make constant pool loads match their actual cost, and adds the broadcast special case to avoid too many regressions. We really need more information about the constants being rematerialized, but this is an incremental improvement.

Diff Detail

Event Timeline

reames created this revision.Sep 27 2022, 8:52 AM
reames requested review of this revision.Sep 27 2022, 8:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2022, 8:52 AM
asb accepted this revision.Sep 29 2022, 5:07 AM

LGTM, as suggested in the patch description this seems incrementally better than what we have right now but there remain opportunities for improving it further.

This revision is now accepted and ready to land.Sep 29 2022, 5:07 AM
This revision was landed with ongoing or failed builds.Sep 29 2022, 7:37 AM
This revision was automatically updated to reflect the committed changes.