validate_change to unshare the source of the PC set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131505
138bc75d-0d04-0410-961f-
82ee72b054a4
+2008-01-13 Uros Bizjak <ubizjak@gmail.com>
+
+ * gcse.c (cprop_jump): Call validate_unshare_change instead of
+ validate_change to unshare the source of the PC set.
+
2008-01-12 Jan Hubicka <jh@suse.cz>
PR middle-end/32135
to one computed by setcc. */
if (setcc && modified_in_p (new, setcc))
return 0;
- if (! validate_change (jump, &SET_SRC (set), new, 0))
+ if (! validate_unshare_change (jump, &SET_SRC (set), new, 0))
{
/* When (some) constants are not valid in a comparison, and there
are two registers to be replaced by constants before the entire