diff mbox series

Fix fail in inline-9.c testcase

Message ID 20211126125117.GI71018@kam.mff.cuni.cz
State New
Headers show
Series Fix fail in inline-9.c testcase | expand

Commit Message

Jan Hubicka Nov. 26, 2021, 12:51 p.m. UTC
Hi,
it turns out that I made testcase for value range propagation (which was
disabled by accidental return statement) but the testcase was confused
by partial inlininig.  The right number of inlines is 2, since the
function in question is first split and then both function and the split
part should be inlined since based on value ranges we know that the
inlined part will become dead.  This patch updates the template.

gcc/testsuite/ChangeLog:

2021-11-26  Jan Hubicka  <hubicka@ucw.cz>

	* gcc.dg/ipa/inline-9.c: Update template.c
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/ipa/inline-9.c b/gcc/testsuite/gcc.dg/ipa/inline-9.c
index 72ac4aa1b4c..347ad55fb4e 100644
--- a/gcc/testsuite/gcc.dg/ipa/inline-9.c
+++ b/gcc/testsuite/gcc.dg/ipa/inline-9.c
@@ -20,4 +20,4 @@  main()
   for (int i=0;i<100;i++)
     test(i);
 }
-/* { dg-final { scan-ipa-dump "Inlined 1 calls" "inline" } } */
+/* { dg-final { scan-ipa-dump "Inlined 2 calls" "inline" } } */