This is an archive of the discontinued LLVM Phabricator instance.

[PGO] Enable InstrProf lowering for Clang PGO instrumentation in the new pass manager
ClosedPublic

Authored by xur on Apr 25 2019, 10:04 AM.

Details

Summary

Currently InstrProf lowering is not enabled for Clang PGO instrumentation in the new pass manager.
The following command "-fprofile-instr-generate -fexperimental-new-pass-manager ..." is broken.
This CL enables InstrProf lowering pass for Clang PGO instrumentation in the new pass manager.

Diff Detail

Repository
rC Clang

Event Timeline

xur created this revision.Apr 25 2019, 10:04 AM
chandlerc accepted this revision.Apr 25 2019, 10:10 AM
chandlerc added a subscriber: chandlerc.

Awesome, LGTM

You might also update one of the instr prof tests to have two RUN lines, one for each pass manager. Feel free to do that (or not) and submit.

This revision is now accepted and ready to land.Apr 25 2019, 10:10 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2019, 10:51 AM