From 9c8b7028ac956395a283ec6366ac87e468891d79 Mon Sep 17 00:00:00 2001
From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 19 Jan 2005 09:31:16 +0000
Subject: 	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/params.def | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'gcc/params.def')

diff --git a/gcc/params.def b/gcc/params.def
index 7ac263cdc24..3ef5893fd42 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.  */
-- 
cgit v1.2.1

