diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-04 01:09:12 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-04 01:09:12 +0000 |
commit | f24ec26f1cabb4f55cdb4370f35b67807df8fb7a (patch) | |
tree | 798273ffece1ba2938c3938e1c16af800a086eee /gcc/loop-init.c | |
parent | e45bbad21b8f3590c89cc7193eaac430b547328f (diff) | |
download | gcc-f24ec26f1cabb4f55cdb4370f35b67807df8fb7a.tar.gz |
* tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops' state
accessor functions.
* cfgloopmanip.c (remove_path, create_preheaders,
force_single_succ_latches, fix_loop_structure): Ditto.
* tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
tree_duplicate_loop_to_header_edge): Ditto.
* cfgloopanal.c (mark_irreducible_loops): Ditto.
* loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
Ditto.
* tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
cleanup_tree_cfg): Ditto.
* tree-cfg.c (tree_merge_blocks): Ditto.
* cfgloop.c (rescan_loop_exit, record_loop_exits,
release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
loop_preheader_edge, single_exit): Ditto.
(flow_loops_find): Do not clear loops->state.
* cfgloop.h (loops_state_satisfies_p, loops_state_set,
loops_state_clear): New functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127197 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-init.c')
-rw-r--r-- | gcc/loop-init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/loop-init.c b/gcc/loop-init.c index 3bdafdaab8b..af62a31a9b8 100644 --- a/gcc/loop-init.c +++ b/gcc/loop-init.c @@ -59,7 +59,7 @@ loop_optimizer_init (unsigned flags) passes may want. */ gcc_assert ((flags & ~(LOOPS_MAY_HAVE_MULTIPLE_LATCHES | LOOPS_HAVE_RECORDED_EXITS)) == 0); - current_loops->state = LOOPS_MAY_HAVE_MULTIPLE_LATCHES; + loops_state_set (LOOPS_MAY_HAVE_MULTIPLE_LATCHES); } else disambiguate_loops_with_multiple_latches (); @@ -105,7 +105,7 @@ loop_optimizer_finalize (void) } /* Clean up. */ - if (current_loops->state & LOOPS_HAVE_RECORDED_EXITS) + if (loops_state_satisfies_p (LOOPS_HAVE_RECORDED_EXITS)) release_recorded_exits (); flow_loops_free (current_loops); ggc_free (current_loops); |