This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32663] [4.3 regression]: revision 126369 went into an infinite loop
- From: "dberlin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2007 20:09:48 -0000
- Subject: [Bug tree-optimization/32663] [4.3 regression]: revision 126369 went into an infinite loop
- References: <bug-32663-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from dberlin at gcc dot gnu dot org 2007-07-07 20:09 -------
(In reply to comment #8)
> I am testing this patch:
>
> --- gcc/tree-ssa-pre.c.bad 2007-07-07 08:18:31.000000000 -0700
> +++ gcc/tree-ssa-pre.c 2007-07-07 12:48:47.000000000 -0700
> @@ -3362,7 +3362,8 @@ make_values_for_stmt (tree stmt, basic_b
> else
> {
> tree val = vn_lookup_or_add_with_stmt (newt, stmt);
> - vn_add (lhs, val);
> + if (!lhsval || !VALUE_HANDLE_VUSES (lhsval))
> + vn_add (lhs, val);
> }
>
> add_to_exp_gen (block, newt);
>
This patch is completely wrong. Please stop trying to work around the problem
by fixing the symptoms.
I will look at this in a moment.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32663