summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2013-12-06 17:58:19 +0000
committerDiego Novillo <dnovillo@google.com>2013-12-06 17:58:19 +0000
commit1d061f70cc17e0222cd1a1e2e6863c6bc9b6552d (patch)
treec56cde764d36d420876b65ac0642c586ffd8d310 /test
parentf6bb714c6b901ab3de83e397669d84503e7d6945 (diff)
downloadclang-1d061f70cc17e0222cd1a1e2e6863c6bc9b6552d.tar.gz
Add flag -fauto-profile as alias to -fprofile-sample-use.
Summary: GCC uses -fauto-profile to enable sample-based PGO. This patch adds it to Clang as an alias for -fprofile-sample-use. Differential Revision: http://llvm-reviews.chandlerc.com/D2353 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Driver/clang_f_opts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Driver/clang_f_opts.c b/test/Driver/clang_f_opts.c
index 8bf53e5e6d..70826d7299 100644
--- a/test/Driver/clang_f_opts.c
+++ b/test/Driver/clang_f_opts.c
@@ -54,6 +54,9 @@
// RUN: %clang -### -S -fprofile-sample-use=%S/Inputs/file.prof %s 2>&1 | FileCheck -check-prefix=CHECK-SAMPLE-PROFILE %s
// CHECK-SAMPLE-PROFILE: "-fprofile-sample-use={{.*}}/file.prof"
+// RUN: %clang -### -S -fauto-profile=%S/Inputs/file.prof %s 2>&1 | FileCheck -check-prefix=CHECK-AUTO-PROFILE %s
+// CHECK-AUTO-PROFILE: "-fprofile-sample-use={{.*}}/file.prof"
+
// RUN: %clang -### -S -fvectorize %s 2>&1 | FileCheck -check-prefix=CHECK-VECTORIZE %s
// RUN: %clang -### -S -fno-vectorize -fvectorize %s 2>&1 | FileCheck -check-prefix=CHECK-VECTORIZE %s
// RUN: %clang -### -S -fno-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-VECTORIZE %s