PR rtl-optimization/15139
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Jan 2005 09:31:16 +0000 (09:31 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Jan 2005 09:31:16 +0000 (09:31 +0000)
commit9c8b7028ac956395a283ec6366ac87e468891d79
treeef90a2aa86b89aceaa4c818ff027effc25d5f55e
parent3a3c175c8c15053145c7607e069e607e3f319488
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93892 138bc75d-0d04-0410-961f-82ee72b054a4
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]