aboutsummaryrefslogtreecommitdiff
path: root/gcc/ddg.c
diff options
context:
space:
mode:
authorBingfeng Mei <bmei@broadcom.com>2010-07-19 09:18:14 +0000
committerBingfeng Mei <meibf@gcc.gnu.org>2010-07-19 09:18:14 +0000
commit0be955e73751c1ffc6468d6a9679201103a21718 (patch)
tree97adf2164166d6402d0e329bf597c0ea2e666e05 /gcc/ddg.c
parent9005471b8382cc019ccd189b51ef7422027735f7 (diff)
downloadgcc-0be955e73751c1ffc6468d6a9679201103a21718.zip
gcc-0be955e73751c1ffc6468d6a9679201103a21718.tar.gz
gcc-0be955e73751c1ffc6468d6a9679201103a21718.tar.bz2
ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes of a loop.
2010-07-19 Bingfeng Mei <bmei@broadcom.com> * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes of a loop. * loop-doloop.c (doloop_condition_get): Skip possible debug_insn. From-SVN: r162300
Diffstat (limited to 'gcc/ddg.c')
-rw-r--r--gcc/ddg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ddg.c b/gcc/ddg.c
index 295c4e8..0a20ed6 100644
--- 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;