[PATCH, PR46032] Handle BUILT_IN_GOMP_PARALLEL in ipa-pta

Jakub Jelinek jakub@redhat.com
Mon Nov 30 16:52:00 GMT 2015


On Mon, Nov 30, 2015 at 05:36:25PM +0100, Tom de Vries wrote:
> +int
> +main (void)
> +{
> +  unsigned results[nEvents];
> +  unsigned pData[nEvents];
> +  unsigned coeff = 2;
> +
> +  init (&results[0], &pData[0]);
> +
> +#pragma omp parallel for
> +  for (int idx = 0; idx < (int)nEvents; idx++)
> +    results[idx] = coeff * pData[idx];

Could you please add another testcase, where you have say pData
and some other pointer that init sets to alias with pData, and verify
that such loop (would need to be say normal loop inside #pragma omp single
or master) is not vectorized?

	Jakub



More information about the Gcc-patches mailing list