From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7004 invoked by alias); 3 Jun 2011 01:42:38 -0000 Received: (qmail 6993 invoked by uid 22791); 3 Jun 2011 01:42:37 -0000 X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Jun 2011 01:42:20 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p531gBtm009813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Jun 2011 21:42:11 -0400 Received: from freie.oliva.athome.lsd.ic.unicamp.br (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p531g3Fc012885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Jun 2011 21:42:07 -0400 Received: from livre.localdomain (livre-to-gw.oliva.athome.lsd.ic.unicamp.br [172.31.160.19]) by freie.oliva.athome.lsd.ic.unicamp.br (8.14.4/8.14.4) with ESMTP id p531g1kS007377; Thu, 2 Jun 2011 22:42:02 -0300 Received: from livre.localdomain (aoliva@localhost.localdomain [127.0.0.1]) by livre.localdomain (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p531c17f008696; Thu, 2 Jun 2011 22:38:02 -0300 Received: (from aoliva@localhost) by livre.localdomain (8.14.3/8.14.3/Submit) id p531bx8Q008694; Thu, 2 Jun 2011 22:37:59 -0300 From: Alexandre Oliva To: Bernd Schmidt Cc: Jakub Jelinek , gcc-patches@gcc.gnu.org Subject: Re: introduce --param max-vartrack-expr-depth References: <4DE3784F.6050201@codesourcery.com> <20110602084646.GZ17079@tyan-ft48-01.lab.bos.redhat.com> <4DE760BC.9050204@codesourcery.com> Date: Fri, 03 Jun 2011 01:42:00 -0000 In-Reply-To: <4DE760BC.9050204@codesourcery.com> (Bernd Schmidt's message of "Thu, 02 Jun 2011 12:06:52 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00208.txt.bz2 --=-=-= Content-length: 303 On Jun 2, 2011, Bernd Schmidt wrote: > On 06/02/2011 10:46 AM, Jakub Jelinek wrote: >> On Wed, Jun 01, 2011 at 07:25:39PM -0300, Alexandre Oliva wrote: >>> Such as this one... >> >> I'd appreciate if this could go in... > Go on then. Ok, here's what I've just installed. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=vta-param-vartrack-expr-depth-int-max.patch Content-length: 1276 for gcc/ChangeLog from Alexandre Oliva * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10. * var-tracking.c (reverse_op): Limite recurse depth to 5. Index: gcc/params.def =================================================================== --- gcc/params.def.orig 2011-05-31 18:28:05.348070586 -0300 +++ gcc/params.def 2011-06-01 17:09:41.117140944 -0300 @@ -845,7 +845,7 @@ DEFPARAM (PARAM_MAX_VARTRACK_SIZE, DEFPARAM (PARAM_MAX_VARTRACK_EXPR_DEPTH, "max-vartrack-expr-depth", "Max. recursion depth for expanding var tracking expressions", - 10, 0, 0) + 20, 0, 0) /* Set minimum insn uid for non-debug insns. */ Index: gcc/var-tracking.c =================================================================== --- gcc/var-tracking.c.orig 2011-05-31 20:06:25.604477956 -0300 +++ gcc/var-tracking.c 2011-05-31 23:56:06.578450957 -0300 @@ -5288,7 +5288,7 @@ reverse_op (rtx val, const_rtx expr) arg = XEXP (src, 1); if (!CONST_INT_P (arg) && GET_CODE (arg) != SYMBOL_REF) { - arg = cselib_expand_value_rtx (arg, scratch_regs, EXPR_DEPTH); + arg = cselib_expand_value_rtx (arg, scratch_regs, 5); if (arg == NULL_RTX) return NULL_RTX; if (!CONST_INT_P (arg) && GET_CODE (arg) != SYMBOL_REF) --=-=-= Content-length: 258 -- Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer --=-=-=--