This is an archive of the discontinued LLVM Phabricator instance.

Hook the sample PGO machinery in the new PM
ClosedPublic

Authored by danielcdh on Jun 27 2017, 3:50 PM.

Event Timeline

danielcdh created this revision.Jun 27 2017, 3:50 PM
davidxl edited edge metadata.Jun 27 2017, 3:53 PM

One or more integration test (using clang driver with new PM) is probably needed.

One or more integration test (using clang driver with new PM) is probably needed.

The test is added in the clang side: https://reviews.llvm.org/D34721

tejohnson accepted this revision.Jun 28 2017, 11:49 AM
tejohnson added a subscriber: tejohnson.

LGTM

lib/Passes/PassBuilder.cpp
781

Looks like this line might need to be clang formatted (indention fix), but maybe it just looks funny in Phab?

This revision is now accepted and ready to land.Jun 28 2017, 11:49 AM
danielcdh added inline comments.Jun 28 2017, 5:02 PM
lib/Passes/PassBuilder.cpp
781

This is actually the layout generated by clang-format. Yes, it indeed looks strange...

As https://reviews.llvm.org/D34728 has already landed, this patch is ready to land.

Chandler and David, let me know if you have further concerns. I will commit this patch and https://reviews.llvm.org/D34721 Friday morning if no more concerns have been raised.

Thanks,
Dehao

No, I don't have other comments.

chandlerc accepted this revision.Jun 29 2017, 4:18 PM

FWIW, I think this is fine to go in...

If we need more integration tests, they can be in follow-up patches?

You should (probably) be able to use the debug logging patch Tim just finished to test this I think? Anyways, very happy for those to be in follow-up commits. Let's get this in so folks can start using it. =D

danielcdh closed this revision.Jun 29 2017, 4:33 PM