This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] fix ix86 prefetch support with -Os
On Mon, Jan 21, 2002 at 02:07:16PM -0800, Richard Henderson wrote:
> On Wed, Jan 16, 2002 at 08:47:06AM -0800, Janis Johnson wrote:
> > Weird, yes, but it shouldn't cause the compiler to divide by zero.
>
> Drop a 1 or somesuch into the size_cost info.
But what if the user wants smaller code in general but still wants a
prefetch optimization? The prefetch parameters vary from machine to
machine within ix86, and if they come from the size_cost info then
they are wrong for some machines. Those structs are currently const,
so moving the proper parameters into the size_cost struct don't work
unless "const" is removed from several places.
Janis