This revision was automatically updated to reflect the committed changes. Closed by commit rL311347: [clang] Fix tests for Emitting Single Inline Remark (authored by lenary).
Repository: rL LLVM https://reviews.llvm.org/D36949 Files: cfe/trunk/test/Frontend/optimization-remark-with-hotness.c cfe/trunk/test/Frontend/optimization-remark.c Index: cfe/trunk/test/Frontend/optimization-remark.c =================================================================== --- cfe/trunk/test/Frontend/optimization-remark.c +++ cfe/trunk/test/Frontend/optimization-remark.c @@ -42,9 +42,8 @@ // 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); } Index: cfe/trunk/test/Frontend/optimization-remark-with-hotness.c =================================================================== --- cfe/trunk/test/Frontend/optimization-remark-with-hotness.c +++ cfe/trunk/test/Frontend/optimization-remark-with-hotness.c @@ -56,8 +56,7 @@ // 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); }
Index: cfe/trunk/test/Frontend/optimization-remark.c =================================================================== --- cfe/trunk/test/Frontend/optimization-remark.c +++ cfe/trunk/test/Frontend/optimization-remark.c @@ -42,9 +42,8 @@ // 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); } Index: cfe/trunk/test/Frontend/optimization-remark-with-hotness.c =================================================================== --- cfe/trunk/test/Frontend/optimization-remark-with-hotness.c +++ cfe/trunk/test/Frontend/optimization-remark-with-hotness.c @@ -56,8 +56,7 @@ // 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); }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits