aboutsummaryrefslogtreecommitdiff
path: root/gcc/params.def
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-01-19 10:31:16 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2005-01-19 10:31:16 +0100
commit49c3b9a84696a13e3ef71708ef80552606dd08c4 (patch)
treeef90a2aa86b89aceaa4c818ff027effc25d5f55e /gcc/params.def
parente89be13bdf98cff1cbbdd9490e4b4d5e20e68baf (diff)
downloadgcc-49c3b9a84696a13e3ef71708ef80552606dd08c4.zip
gcc-49c3b9a84696a13e3ef71708ef80552606dd08c4.tar.gz
gcc-49c3b9a84696a13e3ef71708ef80552606dd08c4.tar.bz2
re PR rtl-optimization/15139 (cc1 uses excessive amounts of memory compiling small routine)
PR rtl-optimization/15139 * combine.c: Include params.h. (count_rtxs): New function. (record_value_for_reg): If replace_rtx would replace at least 2 occurrences of REG in VALUE and TEM is really large, replace REG with (clobber (const_int 0)) instead of TEM. * params.def (PARAM_MAX_LAST_VALUE_RTL): New. * params.h (MAX_LAST_VALUE_RTL): New. * Makefile.in (combine.o): Depend on $(PARAMS_H). * doc/invoke.texi (--param max-last-value-rtl=N): Document. * gcc.dg/20050111-2.c: New test. From-SVN: r93892
Diffstat (limited to 'gcc/params.def')
-rw-r--r--gcc/params.def5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def
index 7ac263c..3ef5893 100644
--- a/gcc/params.def
+++ b/gcc/params.def
@@ -408,6 +408,11 @@ DEFPARAM(PARAM_MAX_SCHED_REGION_INSNS,
"The maximum number of insns in a region to be considered for interblock scheduling",
100, 0, 0)
+DEFPARAM(PARAM_MAX_LAST_VALUE_RTL,
+ "max-last-value-rtl",
+ "The maximum number of RTL nodes that can be recorded as combiner's last value",
+ 10000, 0, 0)
+
/* INTEGER_CST nodes are shared for values [{-1,0} .. N) for
{signed,unsigned} integral types. This determines N.
Experimentation shows 256 to be a good value. */