This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with sh mode switching code at -O0


On Wed, Nov 15, 2000 at 01:00:30PM +0000, Bernd Schmidt wrote:
> There are a couple of alternatives how to fix it.  We could always run
> optimize_mode_switching and get rid of emit_sf_insn/emit_df_insn.  This
> is my preferred solution and implemented by patch #1 below.  However, I
> don't know how fast that pass is; it may well be unacceptable at -O0.
> Alternatively, we could try to make emit_libcall_block detect the situation.
> This is patch #2.  There are more possibilities (e.g. don't make libcall
> blocks at -O0), but these two are IMO the only ones that make sense.

I personally prefer option #1 as well.  I can't believe that it
would be _that_ slow.


r~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]