diff options
author | meibf <meibf@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-19 09:18:14 +0000 |
---|---|---|
committer | meibf <meibf@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-19 09:18:14 +0000 |
commit | 9c868118292231eb2a3160923b6676a894f03889 (patch) | |
tree | 97adf2164166d6402d0e329bf597c0ea2e666e05 /gcc/ddg.c | |
parent | 3cf7ab3b10aa2a4c13d323438bf695c2c92e6319 (diff) | |
download | gcc-9c868118292231eb2a3160923b6676a894f03889.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162300 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ddg.c')
-rw-r--r-- | gcc/ddg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ddg.c b/gcc/ddg.c index 295c4e8da81..0a20ed61291 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; |