Commit 346a966e by Eric Botcazou Committed by Eric Botcazou

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
parent 6e3d8cb4
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
......
......@@ -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 ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment