This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/19825] -fno-loop-optimize2 does not work
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Feb 2005 17:33:50 -0000
- Subject: [Bug driver/19825] -fno-loop-optimize2 does not work
- References: <20050208162825.19825.Thomas.Koenig@online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-08 17:33 -------
There is a section in the source which does this:
/* Enable new loop optimizer pass if any of its optimizations is called. */
if (flag_move_loop_invariants
|| flag_unswitch_loops
|| flag_peel_loops
|| flag_unroll_loops
|| flag_branch_on_count_reg)
flag_loop_optimize2 = 1;
And -fbranch-count-reg is always enabled.
The documention says:
-floop-optimize2
Perform loop optimizations using the new loop optimizer. The optimizations (loop unrolling, peeling
and unswitching, loop invariant motion) are enabled by separate flags.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19825