X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fdomwalk.c;h=fb7f0729d3da4f453bcbaf3a20020183cab912d0;hb=7433d1d602d195414fa7c4766b953d05ac8cf371;hp=04a490903b05894fc627e6ca2a4b04bde3a250d7;hpb=3100c298339a6239e2d273a739a5cc8eb81be8c8;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/domwalk.c b/gcc/domwalk.c index 04a490903b0..fb7f0729d3d 100644 --- a/gcc/domwalk.c +++ b/gcc/domwalk.c @@ -1,12 +1,12 @@ /* Generic dominator tree walker - Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc. Contributed by Diego Novillo This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) +the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, @@ -15,9 +15,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to -the Free Software Foundation, 51 Franklin Street, Fifth Floor, -Boston, MA 02110-1301, USA. */ +along with GCC; see the file COPYING3. If not see +. */ #include "config.h" #include "system.h" @@ -122,7 +121,7 @@ Boston, MA 02110-1301, USA. */ which reduces code duplication since the rewriting phase is inherently a walk of the dominator tree. - And (of course), we use the dominator walker to drive a our dominator + And (of course), we use the dominator walker to drive our dominator optimizer, which is a semi-global optimizer. TODO: @@ -152,7 +151,9 @@ walk_dominator_tree (struct dom_walk_data *walk_data, basic_block bb) while (true) { /* Don't worry about unreachable blocks. */ - if (EDGE_COUNT (bb->preds) > 0 || bb == ENTRY_BLOCK_PTR) + if (EDGE_COUNT (bb->preds) > 0 + || bb == ENTRY_BLOCK_PTR + || bb == EXIT_BLOCK_PTR) { /* If block BB is not interesting to the caller, then none of the callbacks that walk the statements in BB are going to be