summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/pgo-sample-thinlto-summary.c
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-06-27 17:45:40 +0000
committerDehao Chen <dehao@google.com>2017-06-27 17:45:40 +0000
commit874bc749a20f14d6fc30e43038b3c99d6c40c4a9 (patch)
tree5d317380cc74dd4ebe28297b09061c46c0cde916 /clang/test/CodeGen/pgo-sample-thinlto-summary.c
parentd53f6a898099601bfaff0f802d9fbd12e5537862 (diff)
downloadbcm5719-llvm-874bc749a20f14d6fc30e43038b3c99d6c40c4a9.tar.gz
bcm5719-llvm-874bc749a20f14d6fc30e43038b3c99d6c40c4a9.zip
Update the test comment to clarify the intention of the test.
llvm-svn: 306434
Diffstat (limited to 'clang/test/CodeGen/pgo-sample-thinlto-summary.c')
-rw-r--r--clang/test/CodeGen/pgo-sample-thinlto-summary.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/clang/test/CodeGen/pgo-sample-thinlto-summary.c b/clang/test/CodeGen/pgo-sample-thinlto-summary.c
index 65d2f0dd987..d64de536e18 100644
--- a/clang/test/CodeGen/pgo-sample-thinlto-summary.c
+++ b/clang/test/CodeGen/pgo-sample-thinlto-summary.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample-thinlto-summary.prof %s -emit-llvm -o - 2>&1 | FileCheck %s -check-prefix=O2
+// RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample-thinlto-summary.prof %s -emit-llvm -o - 2>&1 | FileCheck %s -check-prefix=SAMPLEPGO
// RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample-thinlto-summary.prof %s -emit-llvm -flto=thin -o - 2>&1 | FileCheck %s -check-prefix=THINLTO
// Checks if hot call is inlined by normal compile, but not inlined by
// thinlto compile.
@@ -11,9 +11,9 @@ void foo(int n) {
g += baz(i);
}
-// O2-LABEL: define void @bar
+// SAMPLEPGO-LABEL: define void @bar
// THINLTO-LABEL: define void @bar
-// O2-NOT: call{{.*}}foo
+// SAMPLEPGO-NOT: call{{.*}}foo
// THINLTO: call{{.*}}foo
void bar(int n) {
for (int i = 0; i < n; i++)
@@ -21,10 +21,10 @@ void bar(int n) {
}
// Checks if loop unroll is invoked by normal compile, but not thinlto compile.
-// O2-LABEL: define void @unroll
+// SAMPLEPGO-LABEL: define void @unroll
// THINLTO-LABEL: define void @unroll
-// O2: call{{.*}}baz
-// O2: call{{.*}}baz
+// SAMPLEPGO: call{{.*}}baz
+// SAMPLEPGO: call{{.*}}baz
// THINLTO: call{{.*}}baz
// THINLTO-NOT: call{{.*}}baz
void unroll() {
@@ -32,10 +32,10 @@ void unroll() {
baz(i);
}
-// Check that icp is not invoked for ThinLTO, but invoked for -O2.
-// O2-LABEL: define void @icp
+// Checks that icp is not invoked for ThinLTO, but invoked for normal samplepgo.
+// SAMPLEPGO-LABEL: define void @icp
// THINLTO-LABEL: define void @icp
-// O2: if.true.direct_targ
+// SAMPLEPGO: if.true.direct_targ
// ThinLTO-NOT: if.true.direct_targ
void icp(void (*p)()) {
p();
OpenPOWER on IntegriCloud