This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Get rid of useless .oaccdevlow dump file


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
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 ();
     }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]