regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 25 Aug 2005 06:44:09 +0000 (06:44 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Thu, 25 Aug 2005 06:44:09 +0000 (06:44 +0000)
2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
    Jan Hubicka  <jh@suse.cz>

* regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.

Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r103472

gcc/ChangeLog
gcc/regmove.c

index bed72af0aee7bdfc1d9726e338556b19796a9331..d9b9ae46ff16a0b43f13b84b6dca21195ef61783 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
+           Jan Hubicka  <jh@suse.cz>
+
+       * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
+
 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
 
        PR tree-optimization/23546
index e6bbc8ca65dbf20951e417524a312d44390d9010..f74295834df2ce84fe49dff2f07b166b04c804c8 100644 (file)
@@ -859,13 +859,13 @@ reg_is_remote_constant_p (rtx reg, rtx insn, rtx first)
     return 0;
 
   /* Look for the set.  */
-  for (p = LOG_LINKS (insn); p; p = XEXP (p, 1))
+  for (p = BB_HEAD (BLOCK_FOR_INSN (insn)); p != insn; p = NEXT_INSN (p))
     {
       rtx s;
 
-      if (REG_NOTE_KIND (p) != 0)
+      if (!INSN_P (p))
        continue;
-      s = single_set (XEXP (p, 0));
+      s = single_set (p);
       if (s != 0
          && REG_P (SET_DEST (s))
          && REGNO (SET_DEST (s)) == REGNO (reg))