Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [PGO] Change profile use cc1 option to handle IR level profiles | Rong Xu | 2016-03-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | 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 llvm-svn: 262515 | ||||
* | test: Use llvm-profdata merge in Profile tests | Justin Bogner | 2014-04-17 | 1 | -1/+2 |
| | | | | | | | | | | | In preparation for using a binary format for instrumentation based profiling, explicitly treat the test inputs as text and transform them before running. This will allow us to leave the checked in files in human readable format once the instrumentation format is binary. No functional change. llvm-svn: 206509 | ||||
* | CodeGen: Don't create branch weight metadata from empty profiles | Justin Bogner | 2014-04-04 | 1 | -0/+68 |
If all of our weights are zero when calculating branch weights, it means we haven't profiled the code in question. Avoid creating a metadata node that says all branches are equally likely in this case. The test also checks constructs that hit the other createBranchWeights overload. These were already working. llvm-svn: 205606 |