[PATCH] Enabling Software Prefetching by Default at -O3
Andreas Krebbel
krebbel@linux.vnet.ibm.com
Fri Jun 18 09:26:00 GMT 2010
Hi,
> This patch serves as a proposal to turn on software prefetching by default at -O3.
We probably also should remove these warnings if -fprefetch-loop-arrays hasn't been
specified explicitly:
#ifndef HAVE_prefetch
if (flag_prefetch_loop_arrays)
{
warning (0, "-fprefetch-loop-arrays not supported for this target");
flag_prefetch_loop_arrays = 0;
}
#else
if (flag_prefetch_loop_arrays && !HAVE_prefetch)
{
warning (0, "-fprefetch-loop-arrays not supported for this target (try -march
switches)");
flag_prefetch_loop_arrays = 0;
}
#endif
Bye,
-Andreas-
More information about the Gcc-patches
mailing list