[PATCH]: GVN-PRE

Andreas Schwab schwab@suse.de
Tue Jun 15 13:26:00 GMT 2004


Daniel Berlin <dberlin@dberlin.org> writes:

> Can you try bootstrapping with this patch on ia64-linux?
>
> Index: tree-ssa-pre.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/tree-ssa-pre.c,v
> retrieving revision 2.7
> diff -u -3 -p -r2.7 tree-ssa-pre.c
> --- tree-ssa-pre.c      12 Jun 2004 00:18:32 -0000      2.7
> +++ tree-ssa-pre.c      12 Jun 2004 19:43:00 -0000
> @@ -468,6 +468,11 @@ add_to_value (tree v, tree e)
>         TREE_CONSTANT (v) = true;
>         TREE_CHAIN (v) = e;
>       }
> +  else if (is_gimple_min_invariant (e))
> +    {
> +      TREE_CONSTANT (v) = true;
> +      TREE_CHAIN (v) = e;
> +    }
>   #if DEBUG_VALUE_EXPRESSIONS
>     if (va->expr_set == NULL)
>       va->expr_set = set_new (false);
>

This patch is now missing on the lno branch, too.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list