diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-23 13:48:12 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-23 13:48:12 +0000 |
commit | b99ab2752f0adc47b0606cc3ca31696172bbe36c (patch) | |
tree | 74c8ed6896fc763ca39ad07ae90e5c2c28f4727d /gcc/loop-init.c | |
parent | a1ccf30d77f65e6b6ae857f18bdbcbb7f996b10e (diff) | |
download | gcc-b99ab2752f0adc47b0606cc3ca31696172bbe36c.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209698 138bc75d-0d04-0410-961f-82ee72b054a4
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 59f52d0f29b..b7f8d9c68c5 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 */ |