[PATCH] D36949: [clang] Fix tests for Emitting Single Inline Remark

Sam Elliott via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 20 23:45:54 PDT 2017


lenary created this revision.

This change depends on https://reviews.llvm.org/D36054 and should be landed at the same time.


https://reviews.llvm.org/D36949

Files:
  test/Frontend/optimization-remark-with-hotness.c
  test/Frontend/optimization-remark.c


Index: test/Frontend/optimization-remark.c
===================================================================
--- test/Frontend/optimization-remark.c
+++ test/Frontend/optimization-remark.c
@@ -42,9 +42,8 @@
 // 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);
 }
Index: test/Frontend/optimization-remark-with-hotness.c
===================================================================
--- test/Frontend/optimization-remark-with-hotness.c
+++ 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 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);
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36949.111929.patch
Type: text/x-patch
Size: 1404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170821/c355ca33/attachment-0001.bin>


More information about the cfe-commits mailing list