This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Disable speculative prefetching for -fprofile-generate/use
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Oct 2004 11:51:12 -0400
- Subject: [PATCH] Disable speculative prefetching for -fprofile-generate/use
-fspeculative-prefetching currently generates too many hints,
which degrades performance. Until this is fixed, prefetching should not
be enabled automatically for -fprofile-generate/use options.
Okay for mainline?
Thanks, David
* opts.c (common_handle_option): Do not enable
flag_speculative_prefetching for -fprofile-generate/use.
Index: opts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/opts.c,v
retrieving revision 1.82
diff -c -p -r1.82 opts.c
*** opts.c 10 Sep 2004 11:02:25 -0000 1.82
--- opts.c 14 Oct 2004 15:41:45 -0000
*************** common_handle_option (size_t scode, cons
*** 842,848 ****
if (!flag_value_profile_transformations_set)
flag_value_profile_transformations = value;
#ifdef HAVE_prefetch
! if (!flag_speculative_prefetching_set)
flag_speculative_prefetching = value;
#endif
break;
--- 842,848 ----
if (!flag_value_profile_transformations_set)
flag_value_profile_transformations = value;
#ifdef HAVE_prefetch
! if (0 && !flag_speculative_prefetching_set)
flag_speculative_prefetching = value;
#endif
break;
*************** common_handle_option (size_t scode, cons
*** 855,861 ****
if (!flag_value_profile_transformations_set)
flag_value_profile_transformations = value;
#ifdef HAVE_prefetch
! if (!flag_speculative_prefetching_set)
flag_speculative_prefetching = value;
#endif
break;
--- 855,861 ----
if (!flag_value_profile_transformations_set)
flag_value_profile_transformations = value;
#ifdef HAVE_prefetch
! if (0 && !flag_speculative_prefetching_set)
flag_speculative_prefetching = value;
#endif
break;