This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fortran's DO CONCURRENT - make use of it middle-end-wise
- From: Andi Kleen <andi at firstfloor dot org>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Sun, 04 Sep 2011 20:09:00 -0700
- Subject: Re: Fortran's DO CONCURRENT - make use of it middle-end-wise
- References: <4E633B29.50905@net-b.de>
Tobias Burnus <burnus@net-b.de> writes:
>
> The plan is to translate it as normal loop; however, it would be
> useful if this non-order-dependence could be used by the middle end
> (general optimization or at least for -floop-parallelize-all /
> -ftree-parallelize-loops). Is there a way to tell the middle-end about
> this property?
iirc the cilk plus branch does that for C (also tells the vectorizer,
which is very useful too) But it needed various changes in the middle
end. Perhaps you could reuse some of that code.
-Andi