From 9480a618477c6308a0bf266fe9ad3278a49d00ed Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Fri, 16 Sep 2016 21:39:05 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240203 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/recog.c | 27 +++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7dc82062f74..daa2619b95b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-09-16 Eric Botcazou + + * 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 * doc/extend.texi (Integer Overflow Builtins): Fix type of out diff --git a/gcc/recog.c b/gcc/recog.c index 19ab5744dd0..6a95d7f9402 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -3901,17 +3901,6 @@ make_pass_split_all_insns (gcc::context *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 { const pass_data pass_data_split_after_reload = @@ -3935,9 +3924,23 @@ public: {} /* 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 *) { - return rest_of_handle_split_after_reload (); + split_all_insns (); + return 0; } }; // class pass_split_after_reload -- 2.11.4.GIT