https://gcc.gnu.org/g:267e7e2b2aa3623d668e0e2ac4336fbff136e557

commit r17-6591-g267e7e2b2aa3623d668e0e2ac4336fbff136e557
Author: Kyrylo Tkachov <[email protected]>
Date:   Mon Nov 23 01:01:05 2026 -0800

    testsuite: Raise early-inlining-insns in inline-aggregate-retval tests [PR 
testsuite/128950]
    
    The tests added with the return-slot copy credit in ipa-fnsummary use
    --param early-inlining-insns=14.  On hppa64-hp-hpux11.11 the inlined body
    of 'mul' has size 26 and the call statement has size 11, so the growth is
    15.  That is above 14 and the early inliner does not inline 'mul'.  On
    aarch64 and x86_64 the call statement has size 12 and the tests pass with
    a limit of 11.
    
    The tests exist to check that the copy into the return slot is credited.
    Without the credit the copy adds to the growth.  On aarch64 and x86_64 the
    tests then fail with any limit up to 18.  On hppa64 the copy adds 16, so
    the growth is 31 without the credit and 15 with it.  A limit of 16 is above
    the growth with the credit on all three targets and below the growth
    without it, so the tests still fail when the credit is missing.
    
    Raise the limit from 14 to 16 in both tests.
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/128950
            * g++.dg/ipa/inline-aggregate-retval.C: Raise --param
            early-inlining-insns to 16.
            * gcc.dg/ipa/inline-aggregate-retval.c: Likewise.
    
    Signed-off-by: Kyrylo Tkachov <[email protected]>

Diff:
---
 gcc/testsuite/g++.dg/ipa/inline-aggregate-retval.C | 2 +-
 gcc/testsuite/gcc.dg/ipa/inline-aggregate-retval.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/g++.dg/ipa/inline-aggregate-retval.C 
b/gcc/testsuite/g++.dg/ipa/inline-aggregate-retval.C
index eb9e3f72ad4b..76c9b8f689b2 100644
--- a/gcc/testsuite/g++.dg/ipa/inline-aggregate-retval.C
+++ b/gcc/testsuite/g++.dg/ipa/inline-aggregate-retval.C
@@ -2,7 +2,7 @@
 // The copy is eliminated by inlining, so it does not count towards the early
 // inliner growth and the operator fits in --param early-inlining-insns.
 // { dg-do compile }
-// { dg-options "-O3 --param early-inlining-insns=14 -fno-inline-functions 
-fno-partial-inlining -fdump-tree-einline-optimized" }
+// { dg-options "-O3 --param early-inlining-insns=16 -fno-inline-functions 
-fno-partial-inlining -fdump-tree-einline-optimized" }
 
 struct V {
   long d[8];
diff --git a/gcc/testsuite/gcc.dg/ipa/inline-aggregate-retval.c 
b/gcc/testsuite/gcc.dg/ipa/inline-aggregate-retval.c
index 8220a69241ce..9283a11416c3 100644
--- a/gcc/testsuite/gcc.dg/ipa/inline-aggregate-retval.c
+++ b/gcc/testsuite/gcc.dg/ipa/inline-aggregate-retval.c
@@ -2,7 +2,7 @@
    by inlining, so it does not count towards the early inliner growth and
    'mul' fits in --param early-inlining-insns.  */
 /* { dg-do compile } */
-/* { dg-options "-O3 --param early-inlining-insns=14 -fno-inline-functions 
-fno-partial-inlining -fdump-tree-einline-optimized" } */
+/* { dg-options "-O3 --param early-inlining-insns=16 -fno-inline-functions 
-fno-partial-inlining -fdump-tree-einline-optimized" } */
 
 struct V { long d[8]; };

Reply via email to