]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Increase auto-inlining param in gcc.dg/ipa/remref-7.c (PR 105183)
authorMartin Jambor <mjambor@suse.cz>
Wed, 13 Apr 2022 13:08:59 +0000 (15:08 +0200)
committerMartin Jambor <mjambor@suse.cz>
Wed, 13 Apr 2022 13:09:29 +0000 (15:09 +0200)
A scan dump of testsuite gcc.dg/ipa/remref-7.c fails on a number of
platforms.  I investigated only i?86-*-* with -mno-sse but assume the
issue is the same on all of the affected platform.

Because function bar is not inlined there even though it is only
called once, the process that is being tested is simply not triggered.
This can be "fixed" by increasing parameter max-inline-insns-auto to
something high, I randomly picked 100.

I have only manually tested the change but hopefully that is enough.

gcc/testsuite/ChangeLog:

2022-04-08  Martin Jambor  <mjambor@suse.cz>

PR testsuite/105183
* gcc.dg/ipa/remref-7.c: Add --param max-inline-insns-auto=100 to options.

gcc/testsuite/gcc.dg/ipa/remref-7.c

index b2c26ab7fd573f6027a412089f72db9c61ab7c67..152b9d0ca94e022e1478fdc70c4f9c1c92a56d4d 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fno-early-inlining -fno-ipa-sra -fdump-ipa-inline }  */
+/* { dg-options "-O2 -fno-early-inlining -fno-ipa-sra -fdump-ipa-inline --param max-inline-insns-auto=100" }  */
 
 int rglobal = 0;
 int g;