HomePhabricator

[PGO] Change profile use cc1 option to handle IR level profiles

Description

[PGO] Change profile use cc1 option to handle IR level profiles

This patch changes cc1 option for PGO profile use from
-fprofile-instr-use=<path> to -fprofile-instrument-use-path=<path>.
-fprofile-instr-use=<path> is now a driver only option.

In addition to decouple the cc1 option from the driver level option, this patch
also enables IR level profile use. cc1 option handling now reads the profile
header and sets CodeGenOpt ProfileUse (valid values are {None, Clang, LLVM}

  • this is a common enum for -fprofile-instrument={}, for the profile

instrumentation), and invoke the pipeline to enable the respective PGO use pass.

Reviewers: silvas, davidxl

Differential Revision: http://reviews.llvm.org/D17737

Details

Committed
xurMar 2 2016, 12:59 PM
Differential Revision
D17737: [PGO] change profile use cc1 option
Parents
rL262514: Fix minor bug in test
Branches
Unknown
Tags
Unknown