From: Uros Bizjak Date: Sun, 13 Jan 2008 12:13:35 +0000 (+0100) Subject: gcse.c (cprop_jump): Call validate_unshare_change instead of validate_change to unsha... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51134e52b515e2bbd0e72ca7535aeebb339337e1;p=gcc.git gcse.c (cprop_jump): Call validate_unshare_change instead of validate_change to unshare the source... * gcse.c (cprop_jump): Call validate_unshare_change instead of validate_change to unshare the source of the PC set. From-SVN: r131505 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6cd0af8b532..9ea747dcf1f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-01-13 Uros Bizjak + + * 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 PR middle-end/32135 diff --git a/gcc/gcse.c b/gcc/gcse.c index db7e03c03d9..8cb5d386702 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -2821,7 +2821,7 @@ cprop_jump (basic_block bb, rtx setcc, rtx jump, rtx from, rtx src) 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