This is an archive of the discontinued LLVM Phabricator instance.

[PM/PGO] Wire up the opt driver's new PM support to be able to run PGO.
ClosedPublic

Authored by chandlerc on May 25 2017, 1:08 AM.

Details

Reviewers
davidxl
davide
Summary

This lets us run the only test in the tree that uses the entire
instrumentation PGO pipeline (rather than a direct pass test) on both
the new PM as well as the old one. We could probably use more tests of
the semantically important parts of this pipeline (as evidenced by the
DCE bug I just fixed) but this at least is a start and makes sure the
core of the new PM's pipeline does actually support PGO.

Event Timeline

chandlerc created this revision.May 25 2017, 1:08 AM
davidxl added inline comments.May 25 2017, 9:48 AM
tools/opt/NewPMDriver.cpp
52

-> Enable profiling generating instrumentation

58

Enable LLVM instrumentation for generating profile into the specified file.

davide accepted this revision.Jun 18 2017, 9:30 PM

LGTM with David's comments addressed.

This revision is now accepted and ready to land.Jun 18 2017, 9:30 PM

Trying to catch up on reviews.
Chandler, was this ever committed?

davide closed this revision.Oct 11 2017, 6:04 PM