This is an archive of the discontinued LLVM Phabricator instance.

[AIX][LTO] Enabling Context Sensitive PGO Options
ClosedPublic

Authored by qiongsiwu1 on Nov 28 2022, 12:33 PM.

Details

Summary

This patch enables context sensitive PGO (CSPGO) for LTO on AIX. Two parts are involved:

  1. Frontend logic is added so libLTO can understand the CSPGO related options.
  2. Two options are added to the backend so that the LTOCodeGenerator can understand the CSPGO related options and make use of them.

Diff Detail

Event Timeline

qiongsiwu1 created this revision.Nov 28 2022, 12:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 12:33 PM
qiongsiwu1 requested review of this revision.Nov 28 2022, 12:33 PM
MaskRay accepted this revision.Nov 28 2022, 7:23 PM

LGTM.

llvm/lib/LTO/LTOCodeGenerator.cpp
125

Delete cl::init(false)

This revision is now accepted and ready to land.Nov 28 2022, 7:23 PM

Address review comment. Thanks for the review!

qiongsiwu1 marked an inline comment as done.Nov 29 2022, 7:44 AM

Fix a clang-format issue in CommonArgs.cpp.