This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Use __sync_* builtins for reduction
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Diego Novillo <dnovillo at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Oct 2005 11:47:40 -0700
- Subject: Re: [gomp] Use __sync_* builtins for reduction
- References: <20051011171255.GC22818@devserv.devel.redhat.com>
On Tue, Oct 11, 2005 at 01:12:55PM -0400, Jakub Jelinek wrote:
> * gimplify.c (omp_atomic_operation_p): New function.
> (gimplify_omp_atomic): Use it.
I'd prefer you passed the operator and mode, and did the whole
lookup. This method will always use mutexes on i386, even if
the reduction is PLUS on SImode, which is available as atomics.
r~