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
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue