OSDN Git Service

* config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Mar 2009 15:09:22 +0000 (15:09 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Mar 2009 15:09:22 +0000 (15:09 +0000)
the loop as bad.

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

gcc/ChangeLog
gcc/config/bfin/bfin.c

index a0ff5c8..d2bb30f 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
+       the loop as bad.
+
 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/39379
index ec5dd57..f4f9d45 100644 (file)
@@ -4362,6 +4362,12 @@ bfin_discover_loop (loop_info loop, basic_block tail_bb, rtx tail_insn)
                      break;
                    }
                }
+             if (!retry)
+               {
+                 if (dump_file)
+                   fprintf (dump_file, ";; No forwarder blocks found\n");
+                 loop->bad = 1;
+               }
            }
        }
     }