loop-invariant.c: New file.
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
Sun, 20 Jun 2004 21:31:32 +0000 (23:31 +0200)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Sun, 20 Jun 2004 21:31:32 +0000 (21:31 +0000)
commit5e96277660887473bdc8b1953fcc35aedd092e3a
treeba006d95fa2c6cd2214ff0411ebeceffe1b217d0
parent2e24fa83ab8d4c5c532e98f0fd005e4f20c833fc
loop-invariant.c: New file.

* loop-invariant.c: New file.
* Makefile.in (loop-invariant.o): New.
* cfgloop.h (global_cost_for_size, init_set_costs,
move_loop_invariants): Declare.
* cfgloopanal.c (seq_cost, init_set_costs, global_cost_for_size): New
functions.
(avail_regs, res_regs, small_cost, pres_cost, spill_cost): New
variables.
* common.opt (floop-optimize2, fmove-loop-invariants): New options.
* loop-init.c (loop_optimizer_init): Call init_set_costs.
* passes.c (rest_of_handle_loop2): Call move_loop_invariants.
(rest_of_compilation): Check flag_loop_optimize2.
* toplev.c (process_options): Handle flag_loop_optimize2.
* doc/invoke.texi (-floop-optimize2, -fmove-loop-invariants): Document.
* doc/passes.texi (loop-invariant.c): Document.

From-SVN: r83419
gcc/ChangeLog
gcc/Makefile.in
gcc/cfgloop.h
gcc/cfgloopanal.c
gcc/common.opt
gcc/doc/invoke.texi
gcc/doc/passes.texi
gcc/loop-init.c
gcc/loop-invariant.c [new file with mode: 0644]
gcc/passes.c
gcc/toplev.c