omp-low.c (pass_oacc_device_lower::gate): New method.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 19 Oct 2016 13:38:24 +0000 (13:38 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 19 Oct 2016 13:38:24 +0000 (13:38 +0000)
* omp-low.c (pass_oacc_device_lower::gate): New method.
(execute): Always call execute_oacc_device_lower.

From-SVN: r241343

gcc/ChangeLog
gcc/omp-low.c

index 382043aaf007fcdcf676320094f995c5de503fa1..be2521e3b6209d5b4668bed913f019e609d46587 100644 (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
index 3ef796f3c2419b10183efb2be71c2c7129145ec4..e5b9e4c10916f60730550f9c0f7c85147c5a17cf 100644 (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 ();
     }