diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2004-12-12 15:52:33 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2004-12-12 15:52:33 +0000 |
commit | d16464bb8bd93317095cf3f73afdee3a44dde021 (patch) | |
tree | a3fa7ab4e950e0e878bee9af9bfb6b11a2c05bee /gcc/tree-ssa-loop-im.c | |
parent | e192ab01d0551cf98e72be093f73bff19f94e98a (diff) | |
download | gcc-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.c | 3 |
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; |