summaryrefslogtreecommitdiffstats
path: root/gcc/cfgloopanal.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-31 20:34:24 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-31 20:34:24 +0000
commitc088dce620b6ca4e163bceeb44903b67251380f1 (patch)
treeef3da471738e19037c6f8a7ff7213ef0ce336081 /gcc/cfgloopanal.c
parentfe132aaf3a9efd79fdf2efe0c53ea7a39ae0be36 (diff)
downloadppe42-gcc-c088dce620b6ca4e163bceeb44903b67251380f1.tar.gz
ppe42-gcc-c088dce620b6ca4e163bceeb44903b67251380f1.zip
* cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
flag for edges outside any loops. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97348 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloopanal.c')
-rw-r--r--gcc/cfgloopanal.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/cfgloopanal.c b/gcc/cfgloopanal.c
index 055375d741f..2d2ece2cb2d 100644
--- a/gcc/cfgloopanal.c
+++ b/gcc/cfgloopanal.c
@@ -580,13 +580,10 @@ mark_loop_exit_edges (struct loops *loops)
{
edge_iterator ei;
- /* Do not mark exits from the fake outermost loop. */
- if (!bb->loop_father->outer)
- continue;
-
FOR_EACH_EDGE (e, ei, bb->succs)
{
- if (loop_exit_edge_p (bb->loop_father, e))
+ if (bb->loop_father->outer
+ && loop_exit_edge_p (bb->loop_father, e))
e->flags |= EDGE_LOOP_EXIT;
else
e->flags &= ~EDGE_LOOP_EXIT;
OpenPOWER on IntegriCloud