From patchwork Wed Sep 9 18:51:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 515982 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 12B8A14012C for ; Thu, 10 Sep 2015 04:52:03 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Bq+OTG7R; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=SskbQGwW+HX2qfMkuyLOl3e2MnxaiRkxiEATaxdNCTECxUB95H oOoPGn7vd2vYsGa87qu9ys6rV2RrJyYWLq0rOgxa8IHrA70UMvSXC4nm2BoYxaNH oP1vVHVTpMiLnqlj5PpngAZZnXRJhp+nNIcRQpDSPwkQEpe6bNLR+gfEM= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=aV6Npf3poVbL1fCULiyQARKiDM0=; b=Bq+OTG7RhRRc50YspX07 EmPxFUbxq/wdOzzSqslC40XtAqs/Xx8uHphBGgDm4PxKGfAAndb9RhJLMOD0u/4H XpNN2p9nGGhRab7NWk57URj9iw+tp9dn60BE1Md6wRwlEaus5ozjgsXl5s9jE/XA mqq45HoIAoqJZI3w8ln3KPc= Received: (qmail 121218 invoked by alias); 9 Sep 2015 18:51:56 -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 121209 invoked by uid 89); 9 Sep 2015 18:51:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f43.google.com Received: from mail-qg0-f43.google.com (HELO mail-qg0-f43.google.com) (209.85.192.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 09 Sep 2015 18:51:55 +0000 Received: by qgt47 with SMTP id 47so16088509qgt.2 for ; Wed, 09 Sep 2015 11:51:53 -0700 (PDT) X-Received: by 10.140.104.33 with SMTP id z30mr33163639qge.0.1441824713122; Wed, 09 Sep 2015 11:51:53 -0700 (PDT) Received: from ?IPv6:2601:181:c000:c497:a2a8:cdff:fe3e:b48? ([2601:181:c000:c497:a2a8:cdff:fe3e:b48]) by smtp.googlemail.com with ESMTPSA id q45sm4404506qgq.0.2015.09.09.11.51.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 11:51:52 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: [gomp4] use integer_zerop Message-ID: <55F07FC8.8050500@acm.org> Date: Wed, 9 Sep 2015 14:51:52 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 I've applied this, where I'd incorrectly compared nodes for equality, rather than the node value. nathan 2015-09-09 Nathan Sidwell * omp-low.c (execute_oacc_transform): Use integer_zerop, not direct node comparison. Index: gcc/omp-low.c =================================================================== --- gcc/omp-low.c (revision 227599) +++ gcc/omp-low.c (working copy) @@ -14829,7 +14829,7 @@ execute_oacc_transform () if (purpose[ix]) { - if (purpose[ix] == boolean_false_node) + if (integer_zerop (purpose[ix])) fn_level = ix + 1; else if (fn_level < 0) fn_level = ix;