diff options
author | Daniel Berlin <dan@cgsoftware.com> | 2001-06-27 14:35:24 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2001-06-27 14:35:24 +0000 |
commit | 740f35a0a1971dc4a0a5ffaaf62ec5859201abef (patch) | |
tree | 8329179d402ec461cb13c031de9de5b3785aae47 /gcc/gcse.c | |
parent | e63fc7bde1349427deceaf5fd2d9530ae73095a4 (diff) | |
download | gcc-740f35a0a1971dc4a0a5ffaaf62ec5859201abef.zip gcc-740f35a0a1971dc4a0a5ffaaf62ec5859201abef.tar.gz gcc-740f35a0a1971dc4a0a5ffaaf62ec5859201abef.tar.bz2 |
invoke.texi: Add description of max-gcse-passes param.
2001-06-26 Daniel Berlin <dan@cgsoftware.com>
* doc/invoke.texi: Add description of max-gcse-passes param.
* gcse.c (gcse_main): Use MAX_GCSE_PASSES instead of MAX_PASSES.
(MAX_PASSES): Remove now unneeded macro.
* params.h (MAX_GCSE_PASSES): New macro, to get parameter value of
max-gcse-passes param.
* params.def (PARAM_MAX_GCSE_PASSES): New parameter, controlling
maximum number of GCSE passes to run. Defaults to 1 (which is what
MAX_PASSES in gcse.c used to be).
From-SVN: r43610
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -166,9 +166,6 @@ Boston, MA 02111-1307, USA. */ #define obstack_chunk_alloc gmalloc #define obstack_chunk_free free -/* Maximum number of passes to perform. */ -#define MAX_PASSES 1 - /* Propagate flow information through back edges and thus enable PRE's moving loop invariant calculations out of loops. @@ -232,7 +229,7 @@ Boston, MA 02111-1307, USA. */ substitutions. PRE is quite expensive in complicated functions because the DFA can take - awhile to converge. Hence we only perform one pass. Macro MAX_PASSES can + awhile to converge. Hence we only perform one pass. The parameter max-gcse-passes can be modified if one wants to experiment. ********************** @@ -810,7 +807,7 @@ gcse_main (f, file) max_pass_bytes = 0; gcse_obstack_bottom = gcse_alloc (1); changed = 1; - while (changed && pass < MAX_PASSES) + while (changed && pass < MAX_GCSE_PASSES) { changed = 0; if (file) |