aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-im.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2004-12-12 15:52:33 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2004-12-12 15:52:33 +0000
commitd16464bb8bd93317095cf3f73afdee3a44dde021 (patch)
treea3fa7ab4e950e0e878bee9af9bfb6b11a2c05bee /gcc/tree-ssa-loop-im.c
parente192ab01d0551cf98e72be093f73bff19f94e98a (diff)
downloadgcc-d16464bb8bd93317095cf3f73afdee3a44dde021.zip
gcc-d16464bb8bd93317095cf3f73afdee3a44dde021.tar.gz
gcc-d16464bb8bd93317095cf3f73afdee3a44dde021.tar.bz2
tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
2004-12-13 Daniel Berlin <dberlin@dberlin.org> * tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null. * tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real inner loop. From-SVN: r92048
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
-rw-r--r--gcc/tree-ssa-loop-im.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c
index 16e477c..05970f8 100644
--- a/gcc/tree-ssa-loop-im.c
+++ b/gcc/tree-ssa-loop-im.c
@@ -1252,6 +1252,9 @@ determine_lsm (struct loops *loops)
struct loop *loop;
basic_block bb;
+ if (!loops->tree_root->inner)
+ return;
+
/* Create a UID for each statement in the function. Ordering of the
UIDs is not important for this pass. */
max_stmt_uid = 0;