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 3/5] improve usage of PROP_gimple_lomp_dev


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


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