This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
-fprefetch-loop-arrays and hardware prefetch
- From: "Zuxy Meng" <zuxy dot meng at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 27 Apr 2007 16:34:11 +0800
- Subject: -fprefetch-loop-arrays and hardware prefetch
Hi,
Modern x86/x86-64 CPUs support hardware prefetch if memory loads are in a
regular pattern, and software prefetch is recommended only when memory
access pattern is hard to determine by hardware. Does that
mean -fprefetch-loop-arrays is unnecessary on such CPUs?
--
Zuxy