diff options
| author | Adam Nemet <anemet@apple.com> | 2017-01-30 16:22:50 +0000 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2017-01-30 16:22:50 +0000 |
| commit | 820086a20b8e00b7aebe65480a88ff1d12397db6 (patch) | |
| tree | 5d8daad810fbe91752890cb3586a24a340013564 /clang/test/Frontend | |
| parent | e7bdf227f66eb66fa2a34534bff7443aa1a7eead (diff) | |
| download | bcm5719-llvm-820086a20b8e00b7aebe65480a88ff1d12397db6.tar.gz bcm5719-llvm-820086a20b8e00b7aebe65480a88ff1d12397db6.zip | |
Adjust tests after folding inlining analysis into missed remarks
llvm-svn: 293493
Diffstat (limited to 'clang/test/Frontend')
| -rw-r--r-- | clang/test/Frontend/optimization-remark-with-hotness.c | 8 | ||||
| -rw-r--r-- | clang/test/Frontend/optimization-remark.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/Frontend/optimization-remark-with-hotness.c b/clang/test/Frontend/optimization-remark-with-hotness.c index 4c27e866f4c..708f5ec8d4b 100644 --- a/clang/test/Frontend/optimization-remark-with-hotness.c +++ b/clang/test/Frontend/optimization-remark-with-hotness.c @@ -4,11 +4,13 @@ // 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 +// RUN: -Rpass-analysis=inline -Rpass-missed=inline \ +// RUN: -fdiagnostics-show-hotness -verify // The clang version of the previous test. // RUN: %clang -target x86_64-apple-macosx10.9 %s -c -emit-llvm -o /dev/null \ // RUN: -fprofile-instr-use=%t.profdata -Rpass=inline \ -// RUN: -Rpass-analysis=inline -fdiagnostics-show-hotness -Xclang -verify +// RUN: -Rpass-analysis=inline -Rpass-missed=inline \ +// RUN: -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 \ @@ -39,7 +41,7 @@ void bar(int x) { int main(int argc, const char *argv[]) { for (int i = 0; i < 30; i++) - // expected-remark@+1 {{bar should never be inlined}} + // expected-remark@+1 {{bar not inlined into main because it should never be inlined}} bar(argc); return sum; } diff --git a/clang/test/Frontend/optimization-remark.c b/clang/test/Frontend/optimization-remark.c index 72cad8ff608..7c02233d683 100644 --- a/clang/test/Frontend/optimization-remark.c +++ b/clang/test/Frontend/optimization-remark.c @@ -42,10 +42,8 @@ float foz(int x, int y) { return x * y; } // twice. // int bar(int j) { -// expected-remark@+6 {{foz should never be inlined (cost=never)}} -// expected-remark@+5 {{foz will not be inlined into bar}} -// expected-remark@+4 {{foz should never be inlined}} -// expected-remark@+3 {{foz will not be inlined into bar}} +// expected-remark@+4 {{foz not inlined into bar because it should never be inlined (cost=never)}} +// expected-remark@+3 {{foz not inlined into bar because it should never be inlined (cost=never)}} // expected-remark@+2 {{foo should always be inlined}} // expected-remark@+1 {{foo inlined into bar}} return foo(j, j - 2) * foz(j - 2, j); |

