From 8bb17f58d6891b34fe2fbc83ff2d268e5fadae58 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Mon, 30 Jan 2017 16:22:50 +0000 Subject: Adjust tests after folding inlining analysis into missed remarks git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293493 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Frontend/optimization-remark-with-hotness.c | 8 +++++--- test/Frontend/optimization-remark.c | 6 ++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test/Frontend') diff --git a/test/Frontend/optimization-remark-with-hotness.c b/test/Frontend/optimization-remark-with-hotness.c index 4c27e866f4..708f5ec8d4 100644 --- a/test/Frontend/optimization-remark-with-hotness.c +++ b/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/test/Frontend/optimization-remark.c b/test/Frontend/optimization-remark.c index 72cad8ff60..7c02233d68 100644 --- a/test/Frontend/optimization-remark.c +++ b/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); -- cgit v1.2.3