diff options
| author | Sam Elliott <ashe2@cs.washington.edu> | 2017-08-21 16:40:35 +0000 |
|---|---|---|
| committer | Sam Elliott <ashe2@cs.washington.edu> | 2017-08-21 16:40:35 +0000 |
| commit | 2307905561db3e3fe6f7f69e2052f012af40a5d1 (patch) | |
| tree | 44924901e91ea2b01593e96a3dfb2325561c5c3c /clang/test/Frontend | |
| parent | 3c3e1b0b54ceda8572e270cc02cb16c2e0c86163 (diff) | |
| download | bcm5719-llvm-2307905561db3e3fe6f7f69e2052f012af40a5d1.tar.gz bcm5719-llvm-2307905561db3e3fe6f7f69e2052f012af40a5d1.zip | |
[clang] Fix tests for Emitting Single Inline Remark
Summary: This change depends on https://reviews.llvm.org/D36054 and should be landed at the same time.
Reviewers: anemet
Reviewed By: anemet
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D36949
llvm-svn: 311347
Diffstat (limited to 'clang/test/Frontend')
| -rw-r--r-- | clang/test/Frontend/optimization-remark-with-hotness.c | 3 | ||||
| -rw-r--r-- | clang/test/Frontend/optimization-remark.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/Frontend/optimization-remark-with-hotness.c b/clang/test/Frontend/optimization-remark-with-hotness.c index 875fc75ae15..5e31ce9f2b2 100644 --- a/clang/test/Frontend/optimization-remark-with-hotness.c +++ b/clang/test/Frontend/optimization-remark-with-hotness.c @@ -56,8 +56,7 @@ void bar(int x) { // THRESHOLD-NOT: hotness // NO_PGO: '-fdiagnostics-show-hotness' requires profile-guided optimization information // NO_PGO: '-fdiagnostics-hotness-threshold=' 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)}} + // expected-remark@+1 {{foo inlined into bar with cost=always}} sum += foo(x, x - 2); } diff --git a/clang/test/Frontend/optimization-remark.c b/clang/test/Frontend/optimization-remark.c index 7c02233d683..29eaa03243e 100644 --- a/clang/test/Frontend/optimization-remark.c +++ b/clang/test/Frontend/optimization-remark.c @@ -42,9 +42,8 @@ float foz(int x, int y) { return x * y; } // twice. // int bar(int j) { -// 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@+2 {{foz not inlined into bar because it should never be inlined (cost=never)}} // expected-remark@+1 {{foo inlined into bar}} return foo(j, j - 2) * foz(j - 2, j); } |

