Skip to content

Commit 2307905

Browse files
committedAug 21, 2017
[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
1 parent 3c3e1b0 commit 2307905

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎clang/test/Frontend/optimization-remark-with-hotness.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ void bar(int x) {
5656
// THRESHOLD-NOT: hotness
5757
// NO_PGO: '-fdiagnostics-show-hotness' requires profile-guided optimization information
5858
// NO_PGO: '-fdiagnostics-hotness-threshold=' requires profile-guided optimization information
59-
// expected-remark@+2 {{foo should always be inlined (cost=always) (hotness: 30)}}
60-
// expected-remark@+1 {{foo inlined into bar (hotness: 30)}}
59+
// expected-remark@+1 {{foo inlined into bar with cost=always}}
6160
sum += foo(x, x - 2);
6261
}
6362

‎clang/test/Frontend/optimization-remark.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ float foz(int x, int y) { return x * y; }
4242
// twice.
4343
//
4444
int bar(int j) {
45-
// expected-remark@+4 {{foz not inlined into bar because it should never be inlined (cost=never)}}
4645
// expected-remark@+3 {{foz not inlined into bar because it should never be inlined (cost=never)}}
47-
// expected-remark@+2 {{foo should always be inlined}}
46+
// expected-remark@+2 {{foz not inlined into bar because it should never be inlined (cost=never)}}
4847
// expected-remark@+1 {{foo inlined into bar}}
4948
return foo(j, j - 2) * foz(j - 2, j);
5049
}

0 commit comments

Comments
 (0)
Please sign in to comment.