[PATCH] Fix PR26406, forwprop causing VRP to fail
Jeffrey A Law
law@redhat.com
Wed Feb 22 15:26:00 GMT 2006
On Wed, 2006-02-22 at 14:07 +0100, Richard Guenther wrote:
> This fixes the testcase by only propagating single-use variables into
> conditionals.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu.
>
> Ok for mainline?
>
> Thanks,
> Richard.
>
>
> :ADDPATCH tree-optimization:
>
> 2006-02-22 Richard Guenther <rguenther@suse.de>
>
> PR tree-optimization/26406
> * tree-ssa-forwprop.c (find_equivalent_equality_comparison):
> Only use single-use conversions to simplify conditionals.
>
> * g++.dg/tree-ssa/pr26406.C: New testcase.
No. We don't want to restrict things in this way. I'm pretty
sure there's a better way to handle this. Please be patient as
I'm more focused on the compilation regressions right now rather
than the minor optimization regressions.
jeff
More information about the Gcc-patches
mailing list