aboutsummaryrefslogtreecommitdiff
path: root/test/Profile/c-counter-overflows.c
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2016-03-02 20:59:36 +0000
committerRong Xu <xur@google.com>2016-03-02 20:59:36 +0000
commit4ab430518d04e7d0d9604fbe40bb0b8cfe3b9780 (patch)
tree79e13eca5dabe5aa217b321b273c3b5eb320ec75 /test/Profile/c-counter-overflows.c
parentda345f9fbaae32241ccb08f382756f8d04aab13b (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Profile/c-counter-overflows.c')
-rw-r--r--test/Profile/c-counter-overflows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Profile/c-counter-overflows.c b/test/Profile/c-counter-overflows.c
index 18a3d33d3a..5cb32bbc30 100644
--- a/test/Profile/c-counter-overflows.c
+++ b/test/Profile/c-counter-overflows.c
@@ -2,7 +2,7 @@
// truncated.
// RUN: llvm-profdata merge %S/Inputs/c-counter-overflows.proftext -o %t.profdata
-// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-counter-overflows.c %s -o - -emit-llvm -fprofile-instr-use=%t.profdata | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-counter-overflows.c %s -o - -emit-llvm -fprofile-instrument-use-path=%t.profdata | FileCheck %s
typedef unsigned long long uint64_t;