This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Get rid of useless .oaccdevlow dump file
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Oct 2016 15:38:40 +0200
- Subject: Get rid of useless .oaccdevlow dump file
- Authentication-results: sourceware.org; auth=none
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 ();
}