This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: introduce --param max-vartrack-expr-depth
On Jun 2, 2011, Bernd Schmidt <bernds@codesourcery.com> 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.
for gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* 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)
--
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