diff options
author | m.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-23 23:10:09 +0000 |
---|---|---|
committer | m.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-01-23 23:10:09 +0000 |
commit | 8c567f7b45d1a993988dd2ef51bdc03f44c08ec1 (patch) | |
tree | b1bc6f8655c4fc318b0bfa0bb32853a20303f802 /gcc/basic-block.h | |
parent | 1e98be2ee125842ef9ef869847568debea4ebcc2 (diff) | |
download | gcc-8c567f7b45d1a993988dd2ef51bdc03f44c08ec1.tar.gz |
2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* basic-block.h (struct loops): New field `levels'.
* flow.c (flow_loops_level_compute): Traverse all outer loops.
(flow_loop_level_compute): Initialise level to 1.
(flow_loops_find): Set loops->levels.
(flow_loops_dump): Print loops->levels.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31577 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index 912d1efe597..c5c29c9b127 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -325,6 +325,9 @@ struct loops /* Number of natural loops in the function. */ int num; + /* Maxium nested loop level in the function. */ + int levels; + /* Array of natural loop descriptors (scanning this array in reverse order will find the inner loops before their enclosing outer loops). */ struct loop *array; |