combine.c (subst): Use reg_overlap_mentioned_p instead of comparing register numbers...
authorSeongbae Park <seongbae.park@gmail.com>
Tue, 12 Jun 2007 01:11:03 +0000 (01:11 +0000)
committerSeongbae Park <spark@gcc.gnu.org>
Tue, 12 Jun 2007 01:11:03 +0000 (01:11 +0000)
2007-06-11  Seongbae Park <seongbae.park@gmail.com>

* combine.c (subst): Use reg_overlap_mentioned_p
instead of comparing register numbers directly.

From-SVN: r125634

gcc/ChangeLog
gcc/combine.c

index 0eba7aa2dc140727403a164f4f354742a62ee461..d9887cf3a027d5eb210d285dbca2795073835b9b 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-11  Seongbae Park <seongbae.park@gmail.com>
+
+       * combine.c (subst): Use reg_overlap_mentioned_p
+       instead of comparing register numbers directly.
+
 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
 
        * reload1.c (mark_home_live_1): Use the mode parameter.
index 6077e783cf04c606c3cf578c6617d8e5decf72f4..e44bad986ebec11b6590d8c7caec82f22bdb478e 100644 (file)
@@ -4237,7 +4237,7 @@ subst (rtx x, rtx from, rtx to, int in_dest, int unique_copy)
 
      So force this insn not to match in this (rare) case.  */
   if (! in_dest && code == REG && REG_P (from)
-      && REGNO (x) == REGNO (from))
+      && reg_ovelap_mentioned_p (x, from))
     return gen_rtx_CLOBBER (GET_MODE (x), const0_rtx);
 
   /* If this is an object, we are done unless it is a MEM or LO_SUM, both