mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
6e3d8cb41d
commit
346a966edf
|
|
@ -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>
|
2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
|
||||||
|
|
||||||
PR tree-optimization/77916
|
PR tree-optimization/77916
|
||||||
|
|
|
||||||
|
|
@ -19848,13 +19848,10 @@ public:
|
||||||
{}
|
{}
|
||||||
|
|
||||||
/* opt_pass methods: */
|
/* opt_pass methods: */
|
||||||
|
virtual bool gate (function *) { return flag_openacc; };
|
||||||
|
|
||||||
virtual unsigned int execute (function *)
|
virtual unsigned int execute (function *)
|
||||||
{
|
{
|
||||||
bool gate = flag_openacc != 0;
|
|
||||||
|
|
||||||
if (!gate)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return execute_oacc_device_lower ();
|
return execute_oacc_device_lower ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue