gcse.c (cprop_jump): Use single_set to get the pattern from the setcc argument.
authorRoger Sayle <roger@eyesopen.com>
Tue, 4 Jun 2002 00:50:42 +0000 (00:50 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 4 Jun 2002 00:50:42 +0000 (00:50 +0000)
* gcse.c (cprop_jump): Use single_set to get the pattern
from the setcc argument.

From-SVN: r54221

gcc/ChangeLog
gcc/gcse.c

index 82bb095c6cfc156738d18b80af41093be7332523..0b913487d0129d417048f64cc537e9afa666ae74 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-03  Roger Sayle  <roger@eyesopen.com>
+
+       * gcse.c (cprop_jump): Use single_set to get the pattern
+       from the setcc argument.
+
 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
 
        * diagnostic.h (diagnostic_count): Move from output_buffer to 
index 2d612f1972cda6bff975ea3e21e4da40d80eb720..e9c35a665e864d104f5fcd1b36059be198a4750d 100644 (file)
@@ -4097,9 +4097,12 @@ cprop_jump (bb, setcc, jump, from, src)
   /* First substitute in the INSN condition as the SET_SRC of the JUMP,
      then substitute that given values in this expanded JUMP.  */
   if (setcc != NULL)
-    new_set = simplify_replace_rtx (SET_SRC (set),
-                                   SET_DEST (PATTERN (setcc)),
-                                   SET_SRC (PATTERN (setcc)));
+    {
+      rtx setcc_set = single_set (setcc);
+      new_set = simplify_replace_rtx (SET_SRC (set),
+                                     SET_DEST (setcc_set),
+                                     SET_SRC (setcc_set));
+    }
   else
     new_set = set;