]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/params.def
re PR rtl-optimization/15139 (cc1 uses excessive amounts of memory compiling small...
authorJakub Jelinek <jakub@redhat.com>
Wed, 19 Jan 2005 09:31:16 +0000 (10:31 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 19 Jan 2005 09:31:16 +0000 (10:31 +0100)
commit49c3b9a84696a13e3ef71708ef80552606dd08c4
treeef90a2aa86b89aceaa4c818ff027effc25d5f55e
parente89be13bdf98cff1cbbdd9490e4b4d5e20e68baf
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
gcc/ChangeLog
gcc/Makefile.in
gcc/combine.c
gcc/doc/invoke.texi
gcc/params.def
gcc/params.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20050111-2.c [new file with mode: 0644]