Commit 3c4860e3 by Martin Sebor Committed by Martin Sebor

inliner-1.c: Correct comments.

gcc/testsuite/ChangeLog:

	* gcc.dg/tree-prof/inliner-1.c: Correct comments.

From-SVN: r268773
parent e43a0139
2019-02-11 Martin Sebor <msebor@redhat.com>
* gcc.dg/tree-prof/inliner-1.c: Correct comments.
2019-02-11 Tamar Christina <tamar.christina@arm.com> 2019-02-11 Tamar Christina <tamar.christina@arm.com>
PR middle-end/88560 PR middle-end/88560
......
...@@ -28,15 +28,15 @@ main () ...@@ -28,15 +28,15 @@ main ()
for (i = 0; i < 1000000; i++) for (i = 0; i < 1000000; i++)
{ {
if (a) if (a)
cold_function (); cold_function (); /* Should not be inlined. */
else else
hot_function (); hot_function (); /* Should be inlined. */
} }
return 0; return 0;
} }
/* cold function should be inlined, while hot function should not. /* The call to hot_function should be inlined, while cold_function should
Look for "cold_function () [tail call];" call statement not for the not be. Look for the "cold_function ();" call statement and not for
declaration or other appearances of the string in dump. */ its declaration or other occurrences of the string in the dump. */
/* { dg-final-use { scan-tree-dump "cold_function ..;" "optimized"} } */ /* { dg-final-use { scan-tree-dump "cold_function ..;" "optimized"} } */
/* { dg-final-use { scan-tree-dump-not "hot_function ..;" "optimized"} } */ /* { dg-final-use { scan-tree-dump-not "hot_function ..;" "optimized"} } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment