This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] conditional store elimination
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: Michael Matz <matz at suse dot de>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 6 Sep 2007 17:49:05 -0400
- Subject: Re: [patch] conditional store elimination
- References: <Pine.LNX.4.64.0708281853120.23011@wotan.suse.de> <b798aad50709061435o16a1a80fo9d5fe6468ea63a3e@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Sep 06, 2007 at 05:35:42PM -0400, Diego Novillo wrote:
> The rest looks fine.
Shouldn't we turn this optimization for -fopenmp though?
If some shared variable (whether it is in a function using #pragma omp
constructs or in some function such constructs perhaps indirectly call)
is always read and only conditionally stored, if this optimization turns it
into unconditional store, it creates a race condition.
Jakub