omp-low.c (pass_oacc_device_lower::gate): New method.

* omp-low.c (pass_oacc_device_lower::gate): New method.
	(execute): Always call execute_oacc_device_lower.

From-SVN: r241343
This commit is contained in:
Eric Botcazou 2016-10-19 13:38:24 +00:00 committed by Eric Botcazou
parent 6e3d8cb41d
commit 346a966edf
2 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
* omp-low.c (pass_oacc_device_lower::gate): New method.
(execute): Always call execute_oacc_device_lower.
2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/77916

View file

@ -19848,13 +19848,10 @@ public:
{}
/* opt_pass methods: */
virtual bool gate (function *) { return flag_openacc; };
virtual unsigned int execute (function *)
{
bool gate = flag_openacc != 0;
if (!gate)
return 0;
return execute_oacc_device_lower ();
}