From patchwork Wed Oct 19 13:38:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 78246 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp254395qge; Wed, 19 Oct 2016 06:39:07 -0700 (PDT) X-Received: by 10.98.82.75 with SMTP id g72mr11367558pfb.119.1476884347283; Wed, 19 Oct 2016 06:39:07 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id y21si32238287pgi.192.2016.10.19.06.39.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2016 06:39:07 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-439022-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-439022-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-439022-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=DrBEpaTuqwtvHayp 8GW22lgA8A+oeWOri6A7BToCaQECmrvtb2D/U3V/rSrBQbfXY20he2iZ7lU6/hRF IDEfbS9lIGxiwn1aQEq47LMM4RM5q22RoQ8QoMjXmWC1+kWqjLyxu+aJpvDdhaWk pkFMsMUqMlVdz4d4TeTjhi+178o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=4bVvwnQDsrBGgafY8FLFQh ucW1s=; b=BiLq5s5brRpXUNsM/R7f4XigTlRTfZbPmpDXlGat1gVnMM/vzM4UGw wvBwRXCFsQrZP+eTObY5e6MdTfozonQg6Bn2yZTZj0pzioOv2ql/6OrDjhA0q5SS GSeOssxsTMuwh3XCO+ww8TNE/n+0yzM9mr2/+6gYdpmZvFGLcdJ0U= Received: (qmail 98883 invoked by alias); 19 Oct 2016 13:38:53 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 98867 invoked by uid 89); 19 Oct 2016 13:38:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Oct 2016 13:38:42 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id CFE1B812FB for ; Wed, 19 Oct 2016 15:38:40 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Aw6OXct8w6ik for ; Wed, 19 Oct 2016 15:38:40 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id A70B9812D3 for ; Wed, 19 Oct 2016 15:38:40 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Get rid of useless .oaccdevlow dump file Date: Wed, 19 Oct 2016 15:38:40 +0200 Message-ID: <1648786.ZSYu5u7iAp@polaris> User-Agent: KMail/4.14.10 (Linux/3.16.7-42-desktop; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 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 * 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 (); }