From: Martin Liska Date: Fri, 26 May 2017 11:05:52 +0000 (+0200) Subject: Bound partial-inlining-entry-probability param (PR ipa/80663). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e929e6115e278e8aa3f2df2d76dbd279f6c5195d;p=gcc.git Bound partial-inlining-entry-probability param (PR ipa/80663). 2017-05-26 Martin Liska PR ipa/80663 * params.def: Bound partial-inlining-entry-probability param. 2017-05-26 Martin Liska PR ipa/80663 * g++.dg/ipa/pr80212.C: Remove the test as it does not longer split at the problematic spot. * gcc.dg/ipa/pr48195.c: Change 101 to 100 as 101 is no longer a valid value of the param. From-SVN: r248489 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f926e9dde8e..c0550694b7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-26 Martin Liska + + PR ipa/80663 + * params.def: Bound partial-inlining-entry-probability param. + 2017-05-26 Marek Polacek PR sanitizer/80875 diff --git a/gcc/params.def b/gcc/params.def index 1b058e49860..6b07518a34b 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -126,7 +126,7 @@ DEFPARAM (PARAM_COMDAT_SHARING_PROBABILITY, DEFPARAM (PARAM_PARTIAL_INLINING_ENTRY_PROBABILITY, "partial-inlining-entry-probability", "Maximum probability of the entry BB of split region (in percent relative to entry BB of the function) to make partial inlining happen.", - 70, 0, 0) + 70, 0, 100) /* Limit the number of expansions created by the variable expansion optimization to avoid register pressure. */ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8d2e7de3b19..cd9bd14367d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2017-05-26 Martin Liska + + PR ipa/80663 + * g++.dg/ipa/pr80212.C: Remove the test as it does not longer + split at the problematic spot. + * gcc.dg/ipa/pr48195.c: Change 101 to 100 as 101 is no longer + a valid value of the param. + 2017-05-26 Marek Polacek PR sanitizer/80875 diff --git a/gcc/testsuite/g++.dg/ipa/pr80212.C b/gcc/testsuite/g++.dg/ipa/pr80212.C deleted file mode 100644 index 60d3b613035..00000000000 --- a/gcc/testsuite/g++.dg/ipa/pr80212.C +++ /dev/null @@ -1,18 +0,0 @@ -// PR ipa/80212 -// { dg-options "-O2 --param partial-inlining-entry-probability=403796683 -fno-early-inlining" } - -struct b -{ - virtual b *c () const; -}; -struct d : virtual b -{ -}; -struct e : d -{ - e * - c () const - { - } -}; -main () { e a; } diff --git a/gcc/testsuite/gcc.dg/ipa/pr48195.c b/gcc/testsuite/gcc.dg/ipa/pr48195.c index 2e38452d598..25e80bab8f8 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr48195.c +++ b/gcc/testsuite/gcc.dg/ipa/pr48195.c @@ -1,5 +1,5 @@ /* { dg-do link } */ -/* { dg-options "-O2 -flto --param partial-inlining-entry-probability=101" } */ +/* { dg-options "-O2 -flto --param partial-inlining-entry-probability=100" } */ /* { dg-require-effective-target lto } */ extern void abort(void);