r311347 - [clang] Fix tests for Emitting Single Inline Remark
Sam Elliott via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 21 09:40:36 PDT 2017
Author: lenary
Date: Mon Aug 21 09:40:35 2017
New Revision: 311347
URL: http://llvm.org/viewvc/llvm-project?rev=311347&view=rev
Log:
[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
Modified:
cfe/trunk/test/Frontend/optimization-remark-with-hotness.c
cfe/trunk/test/Frontend/optimization-remark.c
Modified: cfe/trunk/test/Frontend/optimization-remark-with-hotness.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/optimization-remark-with-hotness.c?rev=311347&r1=311346&r2=311347&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/optimization-remark-with-hotness.c (original)
+++ cfe/trunk/test/Frontend/optimization-remark-with-hotness.c Mon Aug 21 09:40:35 2017
@@ -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 at +2 {{foo should always be inlined (cost=always) (hotness: 30)}}
- // expected-remark at +1 {{foo inlined into bar (hotness: 30)}}
+ // expected-remark at +1 {{foo inlined into bar with cost=always}}
sum += foo(x, x - 2);
}
Modified: cfe/trunk/test/Frontend/optimization-remark.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/optimization-remark.c?rev=311347&r1=311346&r2=311347&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/optimization-remark.c (original)
+++ cfe/trunk/test/Frontend/optimization-remark.c Mon Aug 21 09:40:35 2017
@@ -42,9 +42,8 @@ float foz(int x, int y) { return x * y;
// twice.
//
int bar(int j) {
-// expected-remark at +4 {{foz not inlined into bar because it should never be inlined (cost=never)}}
// expected-remark at +3 {{foz not inlined into bar because it should never be inlined (cost=never)}}
-// expected-remark at +2 {{foo should always be inlined}}
+// expected-remark at +2 {{foz not inlined into bar because it should never be inlined (cost=never)}}
// expected-remark at +1 {{foo inlined into bar}}
return foo(j, j - 2) * foz(j - 2, j);
}
More information about the cfe-commits
mailing list