From: Eric Botcazou Date: Wed, 19 Oct 2016 13:38:24 +0000 (+0000) Subject: omp-low.c (pass_oacc_device_lower::gate): New method. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=346a966edf51acaa628b199d3db6d5e9d783b40b;p=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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 382043aaf00..be2521e3b62 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-10-19 Eric Botcazou + + * omp-low.c (pass_oacc_device_lower::gate): New method. + (execute): Always call execute_oacc_device_lower. + 2016-10-19 Bill Schmidt PR tree-optimization/77916 diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 3ef796f3c24..e5b9e4c1091 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -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 (); }