diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-10 21:01:10 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-10 21:01:10 +0000 |
commit | a82484af55cf9d9565eb3d2d583010f20270bb9d (patch) | |
tree | bd9c601cf33cdc324848180e51e95dbbc17f176e /gcc/loop-init.c | |
parent | f594b1cd2fc2e464fd6b8de9f26f63f5e412293d (diff) | |
download | gcc-a82484af55cf9d9565eb3d2d583010f20270bb9d.tar.gz |
* doc/invoke.texi (-floop-optimize2): Removed.
* toplev.c (process_options): Remove handling of flag_loop_optimize2.
* loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
Test flag_branch_on_count_reg only if HAVE_doloop_end.
* common.opt (floop-optimize2): Removed.
(fmove-loop-invariants): Enabled by default.
* gcc.dg/20050105-1.c: Do not use -floop-optimize2.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110852 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-init.c')
-rw-r--r-- | gcc/loop-init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/loop-init.c b/gcc/loop-init.c index 44f02b704c9..51ad1dad378 100644 --- a/gcc/loop-init.c +++ b/gcc/loop-init.c @@ -133,12 +133,15 @@ loop_optimizer_finalize (struct loops *loops) static bool gate_handle_loop2 (void) { - return (optimize > 0 && flag_loop_optimize2 + return (optimize > 0 && (flag_move_loop_invariants || flag_unswitch_loops || flag_peel_loops || flag_unroll_loops - || flag_branch_on_count_reg)); +#ifdef HAVE_doloop_end + || (flag_branch_on_count_reg && HAVE_doloop_end) +#endif + )); } struct tree_opt_pass pass_loop2 = |