diff options
author | Jan Hubicka <jh@suse.cz> | 2011-09-27 17:27:41 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-09-27 15:27:41 +0000 |
commit | 99e299a8c7583da12320b55684681c9277ab9b3f (patch) | |
tree | 80042c0d4141db5eae06712323293c328fee6801 | |
parent | 2ceb2339b1f5519dffb30f777815fa324e519ec6 (diff) | |
download | gcc-99e299a8c7583da12320b55684681c9277ab9b3f.zip gcc-99e299a8c7583da12320b55684681c9277ab9b3f.tar.gz gcc-99e299a8c7583da12320b55684681c9277ab9b3f.tar.bz2 |
* ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
From-SVN: r179274
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ipa-inline-analysis.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb793d8..d7d03a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2011-09-27 Jan Hubicka <jh@suse.cz> + * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows. + +2011-09-27 Jan Hubicka <jh@suse.cz> + * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle parameters passed by reference; handle loads from non-SSA scalars and update comments. diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 76290d0..7f26af5 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -92,7 +92,7 @@ along with GCC; see the file COPYING3. If not see /* Estimate runtime of function can easilly run into huge numbers with many nested loops. Be sure we can compute time * INLINE_SIZE_SCALE in integer. For anything larger we use gcov_type. */ -#define MAX_TIME 1000000 +#define MAX_TIME 500000 /* Number of bits in integer, but we really want to be stable across different hosts. */ |