[PATCH] Fix PR43367

H.J. Lu hjl.tools@gmail.com
Mon Mar 15 18:55:00 GMT 2010


On Mon, Mar 15, 2010 at 6:16 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> This fixes PR43367 - cfgcleanup needs to cope with non-updated SSA form.
> It checks whether it can propagate a phi argument to a phi result, but
> it checks that only for cases where the phi result is not a gimple
> register - that only should happen if that is a virtual SSA name.
> For virtuals we can always propagate copies.  Other non-SSA names
> (thus, to-be renamed variables) never appear as a PHI result.
>
> Thus the whole checking loop is unnecessary.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
>
> Richard.
>
> 2010-03-15  Richard Guenther  <rguenther@suse.de>
>
>        PR tree-optimization/43367
>        * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
>        elimination check.
>
>        * gcc.c-torture/compile/pr43367.c: New testcase.
>

This caused:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43379

-- 
H.J.



More information about the Gcc-patches mailing list