diff options
author | Richard Biener <rguenther@suse.de> | 2014-04-23 13:48:12 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-04-23 13:48:12 +0000 |
commit | da4cfeacb0a152f4cc3afa7473ccad1b8455eae2 (patch) | |
tree | 74c8ed6896fc763ca39ad07ae90e5c2c28f4727d /gcc/loop-init.c | |
parent | 22718afe53695be38b6d9b7de6edec7c8dda734e (diff) | |
download | gcc-da4cfeacb0a152f4cc3afa7473ccad1b8455eae2.zip gcc-da4cfeacb0a152f4cc3afa7473ccad1b8455eae2.tar.gz gcc-da4cfeacb0a152f4cc3afa7473ccad1b8455eae2.tar.bz2 |
Makefile.in (OBJS): Remove loop-unswitch.o.
2014-04-23 Richard Biener <rguenther@suse.de>
* Makefile.in (OBJS): Remove loop-unswitch.o.
* loop-unswitch.c: Delete.
* tree-pass.h (make_pass_rtl_unswitch): Remove.
* passes.def (pass_rtl_unswitch): Likewise.
* loop-init.c (gate_rtl_unswitch): Likewise.
(rtl_unswitch): Likewise.
(pass_data_rtl_unswitch): Likewise.
(pass_rtl_unswitch): Likewise.
(make_pass_rtl_unswitch): Likewise.
* rtl.h (reversed_condition): Likewise.
(compare_and_jump_seq): Likewise.
* loop-iv.c (reversed_condition): Move here from loop-unswitch.c
and make static.
* loop-unroll.c (compare_and_jump_seq): Likewise.
From-SVN: r209698
Diffstat (limited to 'gcc/loop-init.c')
-rw-r--r-- | gcc/loop-init.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/gcc/loop-init.c b/gcc/loop-init.c index 59f52d0..b7f8d9c 100644 --- a/gcc/loop-init.c +++ b/gcc/loop-init.c @@ -511,49 +511,6 @@ make_pass_rtl_move_loop_invariants (gcc::context *ctxt) namespace { -const pass_data pass_data_rtl_unswitch = -{ - RTL_PASS, /* type */ - "loop2_unswitch", /* name */ - OPTGROUP_LOOP, /* optinfo_flags */ - true, /* has_execute */ - TV_LOOP_UNSWITCH, /* tv_id */ - 0, /* properties_required */ - 0, /* properties_provided */ - 0, /* properties_destroyed */ - 0, /* todo_flags_start */ - TODO_verify_rtl_sharing, /* todo_flags_finish */ -}; - -class pass_rtl_unswitch : public rtl_opt_pass -{ -public: - pass_rtl_unswitch (gcc::context *ctxt) - : rtl_opt_pass (pass_data_rtl_unswitch, ctxt) - {} - - /* opt_pass methods: */ - virtual bool gate (function *) { return flag_unswitch_loops; } - virtual unsigned int execute (function *fun) - { - if (number_of_loops (fun) > 1) - unswitch_loops (); - return 0; - } - -}; // class pass_rtl_unswitch - -} // anon namespace - -rtl_opt_pass * -make_pass_rtl_unswitch (gcc::context *ctxt) -{ - return new pass_rtl_unswitch (ctxt); -} - - -namespace { - const pass_data pass_data_rtl_unroll_and_peel_loops = { RTL_PASS, /* type */ |