On Tue, Jan 17, 2017 at 11:07:43PM +0300, Alexander Monakov wrote:
> This patch implements propagation of PROP_gimple_lomp_dev during inlining to
> allow using it to decide whether pass_omp_device_lower needs to run.
> 
> We need to clear this property in expand_omp_simd when the _simt_ clause is
> present even if we are not doing any SIMT transforms, because we need to
> cleanup the call to GOMP_USE_SIMT () guarding the entry to the cloned loop.
> 
>       * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless 
>         of safelen status.
>         * omp-offload.c (pass_omp_device_lower::gate): Use 
> PROP_gimple_lomp_dev.
>         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
>         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.

LGTM.

        Jakub

Reply via email to