Page MenuHomePhabricator

[lld] add context-sensitive PGO options for COFF.
ClosedPublic

Authored by YolandaCY on Mar 17 2021, 12:34 AM.

Details

Summary

Add lld CSPGO (Contex-Sensitive PGO) options for COFF target.

Reference the ELF options from https://reviews.llvm.org/D56675

Diff Detail

Event Timeline

YolandaCY created this revision.Mar 17 2021, 12:34 AM
YolandaCY requested review of this revision.Mar 17 2021, 12:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2021, 12:34 AM

This patch is to enable CSPGO for Thinlto in lld on Windows. Could you please help review?

xur added a comment.Mar 17 2021, 9:39 AM

This looks good to me. But I'll let other approve this.

Thank you Rong. Any feedback from other reviewers?

I have verified this works for both old and new pass manager.

Regards
Yolanda

I don't have much experience on lld. No objections.

This revision is now accepted and ready to land.Wed, Mar 24, 7:00 PM
This revision was automatically updated to reflect the committed changes.