diff mbox

Get rid of useless .oaccdevlow dump file

Message ID 1648786.ZSYu5u7iAp@polaris
State New
Headers show

Commit Message

Eric Botcazou Oct. 19, 2016, 1:38 p.m. UTC
Yet another pass generating a useless dump file when it is not run.

Tested on x86_64-suse-linux, applied on mainline as obvious.


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.

-- 
Eric Botcazou
diff mbox

Patch

Index: omp-low.c
===================================================================
--- omp-low.c	(revision 241326)
+++ omp-low.c	(working copy)
@@ -19850,13 +19850,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 ();
     }