diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-27 19:51:17 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-27 19:51:17 +0000 |
commit | eed31a1178e92a2e5f024e099ff884dfc7bd24ff (patch) | |
tree | c1ac3d0e9b92e39c461d328f289b2cec68f64955 /gcc/cfgloopanal.c | |
parent | d67c9ae038e5880159d906e1edcfc0120bfa4e00 (diff) | |
download | gcc-eed31a1178e92a2e5f024e099ff884dfc7bd24ff.tar.gz |
PR opt/13159
* cfgloopanal.c (mark_irreducible_loops): Fix the strongly connected
components detection.
* loop-unswitch.c (unswitch_loop): Preserve simple preheaders.
* gcc.c-torture/compile/20031227-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75174 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloopanal.c')
-rw-r--r-- | gcc/cfgloopanal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgloopanal.c b/gcc/cfgloopanal.c index 3d6e69ef48d..74cebe00919 100644 --- a/gcc/cfgloopanal.c +++ b/gcc/cfgloopanal.c @@ -1247,7 +1247,7 @@ mark_irreducible_loops (struct loops *loops) : e->dest->index + 1; if (closed[sidx]) { - if (!closed[mri[sidx]]) + if (mri[sidx] != -1 && !closed[mri[sidx]]) { if (mr[sidx] < mr[idx]) { |