Fix fail in inline-9.c testcase

Jan Hubicka hubicka@kam.mff.cuni.cz
Fri Nov 26 12:51:17 GMT 2021


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 --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" } } */


More information about the Gcc-patches mailing list