Commit 714c2377 by Eric Botcazou Committed by Eric Botcazou

recog.c (rest_of_handle_split_after_reload): Delete.

	* recog.c (rest_of_handle_split_after_reload): Delete.
	(pass_split_after_reload::gate): New method.
	(pass_split_after_reload::execute): Call split_all_insns directly.

From-SVN: r240203
parent 6e395fcb
2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
* recog.c (rest_of_handle_split_after_reload): Delete.
(pass_split_after_reload::gate): New method.
(pass_split_after_reload::execute): Call split_all_insns directly.
2016-09-16 Jonathan Wakely <jwakely@redhat.com> 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
* doc/extend.texi (Integer Overflow Builtins): Fix type of out * doc/extend.texi (Integer Overflow Builtins): Fix type of out
......
...@@ -3901,17 +3901,6 @@ make_pass_split_all_insns (gcc::context *ctxt) ...@@ -3901,17 +3901,6 @@ make_pass_split_all_insns (gcc::context *ctxt)
return new pass_split_all_insns (ctxt); return new pass_split_all_insns (ctxt);
} }
static unsigned int
rest_of_handle_split_after_reload (void)
{
/* If optimizing, then go ahead and split insns now. */
#ifndef STACK_REGS
if (optimize > 0)
#endif
split_all_insns ();
return 0;
}
namespace { namespace {
const pass_data pass_data_split_after_reload = const pass_data pass_data_split_after_reload =
...@@ -3935,9 +3924,23 @@ public: ...@@ -3935,9 +3924,23 @@ public:
{} {}
/* opt_pass methods: */ /* opt_pass methods: */
virtual bool gate (function *)
{
/* If optimizing, then go ahead and split insns now. */
if (optimize > 0)
return true;
#ifdef STACK_REGS
return true;
#else
return false;
#endif
}
virtual unsigned int execute (function *) virtual unsigned int execute (function *)
{ {
return rest_of_handle_split_after_reload (); split_all_insns ();
return 0;
} }
}; // class pass_split_after_reload }; // class pass_split_after_reload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment