Commit 21016e43 by Bernd Schmidt Committed by Bernd Schmidt

re PR rtl-optimization/45966 (Incorrect combiner transformation.)

	PR rtl-optimization/45966
	* combine.c (try_combine): If added_sets_2, deal with the case
	where i0 feeds i1 and i1 feeds i2.

From-SVN: r165674
parent 91d2ae68
2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
PR rtl-optimization/45966
* combine.c (try_combine): If added_sets_2, deal with the case
where i0 feeds i1 and i1 feeds i2.
2010-10-18 Jan Hubicka <jh@suse.cz> 2010-10-18 Jan Hubicka <jh@suse.cz>
* ipa.c (cgraph_externally_visible_p): Handle externally visible and * ipa.c (cgraph_externally_visible_p): Handle externally visible and
...@@ -3192,6 +3192,8 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p) ...@@ -3192,6 +3192,8 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
t = subst (t, i0dest, i0src, 0, 0); t = subst (t, i0dest, i0src, 0, 0);
if (i1_feeds_i2_n) if (i1_feeds_i2_n)
t = subst (t, i1dest, i1src, 0, 0); t = subst (t, i1dest, i1src, 0, 0);
if (i0_feeds_i1_n && i1_feeds_i2_n)
t = subst (t, i0dest, i0src, 0, 0);
XVECEXP (newpat, 0, --total_sets) = t; XVECEXP (newpat, 0, --total_sets) = t;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment