]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
regrename.c (copyprop_hardreg_forward): Only search for a previously processed block...
authorJeff Law <law@redhat.com>
Sat, 20 Nov 2004 20:18:49 +0000 (13:18 -0700)
committerJeff Law <law@gcc.gnu.org>
Sat, 20 Nov 2004 20:18:49 +0000 (13:18 -0700)
        * regrename.c (copyprop_hardreg_forward): Only search for a
        previously processed block if the current block only has one
        predecessor.

From-SVN: r90968

gcc/ChangeLog
gcc/regrename.c

index 8f3a6e9ba78bf8636bb0be88ef480d08088b06e4..ffbfc55c4cdef29db3dc1c4dedc82581f4a05249 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-20  Jeff Law  <law@redhat.com>
+
+       * regrename.c (copyprop_hardreg_forward): Only search for a
+       previously processed block if the current block only has one
+       predecessor.
+
 2004-11-20  Kazu Hirata  <kazu@cs.umass.edu>
 
        * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
index 3856c2cf0208bb8732aa835c0788553c5d85570c..3153e5c353f7ade7321b686efd02b850f5198b69 100644 (file)
@@ -1757,7 +1757,7 @@ copyprop_hardreg_forward (void)
         processed, begin with the value data that was live at
         the end of the predecessor block.  */
       /* ??? Ought to use more intelligent queuing of blocks.  */
-      if (EDGE_COUNT (bb->preds) > 0)
+      if (EDGE_COUNT (bb->preds) == 1)
        for (bbp = bb; bbp && bbp != EDGE_PRED (bb, 0)->src; bbp = bbp->prev_bb);
       if (EDGE_COUNT (bb->preds) == 1
          && ! (EDGE_PRED (bb, 0)->flags & (EDGE_ABNORMAL_CALL | EDGE_EH))