ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes of a loop.
[gcc.git] / gcc / ddg.c
index 295c4e8da81cf1ec7690829c3c92a150e26cfef1..0a20ed612914a73f3c9c8e8cbca5ecfb045fc021 100644 (file)
--- a/gcc/ddg.c
+++ b/gcc/ddg.c
@@ -488,7 +488,7 @@ create_ddg (basic_block bb, int closing_branch_deps)
     }
 
   /* There is nothing to do for this BB.  */
-  if (num_nodes <= 1)
+  if ((num_nodes - g->num_debug) <= 1)
     {
       free (g);
       return NULL;