OSDN Git Service

PR rtl-optimization/27406
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 May 2006 22:51:12 +0000 (22:51 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 May 2006 22:51:12 +0000 (22:51 +0000)
* bt-load.c (migrate_btr_def): Skip the block having abnormal
edges.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113766 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/bt-load.c

index c5ed8fc..80a3571 100644 (file)
@@ -1,3 +1,9 @@
+2006-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR rtl-optimization/27406
+       * bt-load.c (migrate_btr_def): Skip the block having abnormal
+       edges.
+
 2006-05-14  Roger Sayle  <roger@eyesopen.com>
 
        PR rtl-optimization/27538
index 70975e4..88a6806 100644 (file)
@@ -1339,6 +1339,15 @@ migrate_btr_def (btr_def def, int min_cost)
       /* Try to move the instruction that sets the target register into
         basic block TRY.  */
       int try_freq = basic_block_freq (try);
+      edge_iterator ei;
+      edge e;
+
+      /* If TRY has abnormal edges, skip it.  */
+      FOR_EACH_EDGE (e, ei, try->succs)
+       if (e->flags & EDGE_COMPLEX)
+         break;
+      if (e)
+       continue;
 
       if (dump_file)
        fprintf (dump_file, "trying block %d ...", try->index);