This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] conditional store elimination


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]