This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with sh mode switching code at -O0
- To: Bernd Schmidt <bernds at redhat dot com>
- Subject: Re: Problems with sh mode switching code at -O0
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 15 Nov 2000 12:33:07 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <Pine.LNX.4.21.0011151250310.16977-100000@host117.cygnus>
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~