gcse.c (cprop_jump): Call validate_unshare_change instead of validate_change to unsha...
authorUros Bizjak <ubizjak@gmail.com>
Sun, 13 Jan 2008 12:13:35 +0000 (13:13 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 13 Jan 2008 12:13:35 +0000 (13:13 +0100)
        * gcse.c (cprop_jump): Call validate_unshare_change instead of
        validate_change to unshare the source of the PC set.

From-SVN: r131505

gcc/ChangeLog
gcc/gcse.c

index 6cd0af8b53239495976ca0ac4f982403ede7ab6d..9ea747dcf1f78f7e0134b8025cadfd0bafcba9e1 100644 (file)
@@ -1,3 +1,8 @@
+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
index db7e03c03d9f45a97bb52361e0f1e220404bdcab..8cb5d386702051ceec7505036de864ae81a22f30 100644 (file)
@@ -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