summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-09-13 00:16:49 +0000
committerAdam Nemet <anemet@apple.com>2016-09-13 00:16:49 +0000
commitf2b6883ac8d96d9c5dc2c356cae14753d7cf2c6c (patch)
treed457e16a8f780fe3757cedc49846d64dda6131c3 /clang/test
parent6c7b1c62126cea0146777b878a4516aa23073ae2 (diff)
downloadbcm5719-llvm-f2b6883ac8d96d9c5dc2c356cae14753d7cf2c6c.tar.gz
bcm5719-llvm-f2b6883ac8d96d9c5dc2c356cae14753d7cf2c6c.zip
Revert "Add -fdiagnostics-show-hotness"
This reverts commit r281276. Many bots are failing. llvm-svn: 281279
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Frontend/Inputs/optimization-remark-with-hotness.proftext25
-rw-r--r--clang/test/Frontend/optimization-remark-with-hotness.c45
2 files changed, 0 insertions, 70 deletions
diff --git a/clang/test/Frontend/Inputs/optimization-remark-with-hotness.proftext b/clang/test/Frontend/Inputs/optimization-remark-with-hotness.proftext
deleted file mode 100644
index af111d6d06b..00000000000
--- a/clang/test/Frontend/Inputs/optimization-remark-with-hotness.proftext
+++ /dev/null
@@ -1,25 +0,0 @@
-foo
-# Func Hash:
-0
-# Num Counters:
-1
-# Counter Values:
-30
-
-bar
-# Func Hash:
-0
-# Num Counters:
-1
-# Counter Values:
-30
-
-main
-# Func Hash:
-4
-# Num Counters:
-2
-# Counter Values:
-1
-30
-
diff --git a/clang/test/Frontend/optimization-remark-with-hotness.c b/clang/test/Frontend/optimization-remark-with-hotness.c
deleted file mode 100644
index ab9f6a5ba0a..00000000000
--- a/clang/test/Frontend/optimization-remark-with-hotness.c
+++ /dev/null
@@ -1,45 +0,0 @@
-// RUN: llvm-profdata merge \
-// RUN: %S/Inputs/optimization-remark-with-hotness.proftext \
-// RUN: -o %t.profdata
-// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name \
-// RUN: optimization-remark-with-hotness.c %s -emit-llvm-only \
-// RUN: -fprofile-instrument-use-path=%t.profdata -Rpass=inline \
-// RUN: -Rpass-analysis=inline -fdiagnostics-show-hotness -verify
-// The clang version of the previous test.
-// RUN: %clang -target x86_64-apple-macosx10.9 %s -o /dev/null \
-// RUN: -fprofile-instr-use=%t.profdata -Rpass=inline \
-// RUN: -Rpass-analysis=inline -fdiagnostics-show-hotness -Xclang -verify
-// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name \
-// RUN: optimization-remark-with-hotness.c %s -emit-llvm-only \
-// RUN: -fprofile-instrument-use-path=%t.profdata -Rpass=inline \
-// RUN: -Rpass-analysis=inline 2>&1 | FileCheck -check-prefix=HOTNESS_OFF %s
-// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name \
-// RUN: optimization-remark-with-hotness.c %s -emit-llvm-only \
-// RUN: -fprofile-instrument-use-path=%t.profdata -Rpass=inline \
-// RUN: -Rpass-analysis=inline -Rno-pass-with-hotness 2>&1 | FileCheck \
-// RUN: -check-prefix=HOTNESS_OFF %s
-// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name \
-// RUN: optimization-remark-with-hotness.c %s -emit-llvm-only \
-// RUN: -Rpass=inline -Rpass-analysis=inline -fdiagnostics-show-hotness 2>&1 \
-// RUN: | FileCheck -check-prefix=NO_PGO %s
-
-int foo(int x, int y) __attribute__((always_inline));
-int foo(int x, int y) { return x + y; }
-
-int sum = 0;
-
-void bar(int x) {
- // HOTNESS_OFF: foo inlined into bar
- // HOTNESS_OFF-NOT: hotness:
- // NO_PGO: '-fdiagnostics-show-hotness' requires profile-guided optimization information
- // expected-remark@+2 {{foo should always be inlined (cost=always) (hotness: 30)}}
- // expected-remark@+1 {{foo inlined into bar (hotness: 30)}}
- sum += foo(x, x - 2);
-}
-
-int main(int argc, const char *argv[]) {
- for (int i = 0; i < 30; i++)
- // expected-remark@+1 {{bar should never be inlined}}
- bar(argc);
- return sum;
-}
OpenPOWER on IntegriCloud