[patch] for PR35164

Richard Guenther richard.guenther@gmail.com
Fri Feb 15 14:25:00 GMT 2008


On Fri, Feb 15, 2008 at 3:10 PM, Zdenek Dvorak <rakdver@kam.mff.cuni.cz> wrote:
> Hi,
>
>  a missing test for abnormal SSA names in forwprop causes us to extend
>  their life ranges, and consequently ICE in out-of-ssa.  Bootstrapped
>  & regtested on x86_64.

Actually I have a similar patch that splits the check out to a helper function
(it might prove useful elsewhere) and adds the other testcase as well.

Do you mind if I chose to apply that version?  Attached for reference.

Richard.

2008-02-15  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/35164
        * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
        * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
        * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
        Only propagate addresses which do not have abnormal SSA_NAMEs
        in their operands.

        * g++.dg/torture/pr35164-1.C: New testcase.
        * g++.dg/torture/pr35164-2.C: Likewise.



More information about the Gcc-patches mailing list