[LLVMdev] loop pragmas

Sebastian Pop spop at codeaurora.org
Mon Nov 26 08:45:47 PST 2012


Krzysztof Parzyszek wrote:
> On 11/21/2012 9:05 PM, Hal Finkel wrote:
> >
> >I proposed something which has this property for OpenMP handling a few months ago. If any of it were dropped, or things became otherwise inconsistent, because of the cross-referencing, it would be possible to detect the problem and drop the entire parallel region. The problem with using this for OpenMP is that there are cases where dropping the entire parallel region is not a valid thing to do.
> 
> In another compiler that I know, the OpenMP directives were
> processed very early, before any other transformation that could
> have damaged them.

GCC does the same: it translates all the OpenMP pragmas before any optimizations
to avoid invalidating any information carried by the pragmas.

Sebastian
-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation



More information about the llvm-dev mailing list