diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-10-15 10:02:06 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-10-15 08:02:06 +0000 |
commit | f8934be78727eb998f6bb04c001f3dda6cf1017c (patch) | |
tree | e4fe1dea885c050d43cd384f86a97b01f26934e9 /gcc/cfgloop.h | |
parent | fa7fa585ea103c78d433ed615e6d2c7bb68f1ec2 (diff) | |
download | gcc-f8934be78727eb998f6bb04c001f3dda6cf1017c.zip gcc-f8934be78727eb998f6bb04c001f3dda6cf1017c.tar.gz gcc-f8934be78727eb998f6bb04c001f3dda6cf1017c.tar.bz2 |
loop-unroll.c: (decide_unrolling_and_peeling): Rename to
* loop-unroll.c: (decide_unrolling_and_peeling): Rename to
(decide_unrolling): ... this one.
(peel_loops_completely): Remove.
(decide_peel_simple): Remove.
(decide_peel_once_rolling): Remove.
(decide_peel_completely): Remove.
(peel_loop_simple): Remove.
(peel_loop_completely): Remove.
(unroll_and_peel_loops): Rename to ...
(unroll_loops): ... this one; handle only unrolling.
* cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
LPT_PEEL_SIMPLE.
(UAP_PEEL): Remove.
(unroll_and_peel_loops): Remove.
(unroll_loops): New.
* passes.def: Replace
pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
* loop-init.c (gate_rtl_unroll_and_peel_loops,
rtl_unroll_and_peel_loops): Rename to ...
(gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
(pass_rtl_unroll_and_peel_loops): Rename to ...
(pass_rtl_unroll_loops): ... this one.
* tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
(make_pass_rtl_unroll_loops): New.
* tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
(canonicalize_loop_induction_variables): Update.
* gcc.dg/tree-prof/peel-1.c: Update.
* gcc.dg/tree-prof/unroll-1.c: Update.
* gcc.dg/gcc.dg/unroll_1.c: Update.
* gcc.dg/gcc.dg/unroll_2.c: Update.
* gcc.dg/gcc.dg/unroll_3.c: Update.
* gcc.dg/gcc.dg/unroll_4.c: Update.
From-SVN: r216238
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r-- | gcc/cfgloop.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index 432f8fe..932465d 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -30,8 +30,6 @@ along with GCC; see the file COPYING3. If not see enum lpt_dec { LPT_NONE, - LPT_PEEL_COMPLETELY, - LPT_PEEL_SIMPLE, LPT_UNROLL_CONSTANT, LPT_UNROLL_RUNTIME, LPT_UNROLL_STUPID @@ -731,12 +729,11 @@ extern void loop_optimizer_finalize (void); /* Optimization passes. */ enum { - UAP_PEEL = 1, /* Enables loop peeling. */ - UAP_UNROLL = 2, /* Enables unrolling of loops if it seems profitable. */ - UAP_UNROLL_ALL = 4 /* Enables unrolling of all loops. */ + UAP_UNROLL = 1, /* Enables unrolling of loops if it seems profitable. */ + UAP_UNROLL_ALL = 2 /* Enables unrolling of all loops. */ }; -extern void unroll_and_peel_loops (int); +extern void unroll_loops (int); extern void doloop_optimize_loops (void); extern void move_loop_invariants (void); extern void scale_loop_profile (struct loop *loop, int scale, gcov_type iteration_bound); |