Message ID | 20211215155447.19379-35-frederik@codesourcery.com |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EDE953857C50 for <patchwork@sourceware.org>; Wed, 15 Dec 2021 16:17:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 32583385843B for <gcc-patches@gcc.gnu.org>; Wed, 15 Dec 2021 15:57:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 32583385843B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: MO8RkHKGErXUv/EwHuFC75t9Hlqbrq/9/knsGCtJmzioMPTFIAW4g7FgmSq1AQY1DCvsx9sXn4 AHc09YbprmSDSbw3Y0jgz4zJ9Iashm9lRIdqa3KR412/nDbiCe/1F9kZMljvTRisy61IcIoARw QO7DzmBGgIZdl5P9e9Jm7a8jC3MGV8avudRJYYC639Ss7w3EtPIP8RIjVZavMeFdf+GxzCslXZ 6fH14J7N3l69tBnl2xSnvO+gNnEG9NjQapf/aJKq9KqTHmqZ2+vO3D/oP9BhrsKrSvJMoHNN+A FGLqhjnIC3rBLz+BAa+A+KtJ X-IronPort-AV: E=Sophos;i="5.88,207,1635235200"; d="scan'208";a="69584648" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 15 Dec 2021 07:57:14 -0800 IronPort-SDR: zzmq+STVrRARhYLkdoeyOlZPZvxxa+0WKwBRJ/xm4VkzUSx0Q82mMnc6MuGpfnptOqce0pjX3o faA0XV3avienhoSlDy+Sknqe5hBgsiNWH9zZ9WeAbJ6JuUlGjQzoPNgcnsQHGXDCrWSEaiWqSd KNN0rHucl40CZBBWM3DsvNNcDSOnv04MMh5MLhax4RMfEeaTnUEaYfvPwzOM8kZUkkLtOn3xJj WuZW0UU1bpGGbHBDGKJoRlMkRpOpdi/aQgHzl0DdskPPVzmEOrcHXgh44DYBQ4dCJclUQk/SFg Mbc= From: Frederik Harwath <frederik@codesourcery.com> To: <gcc-patches@gcc.gnu.org> Subject: [PATCH 34/40] Use more appropriate var in localize_reductions call Date: Wed, 15 Dec 2021 16:54:41 +0100 Message-ID: <20211215155447.19379-35-frederik@codesourcery.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211215155447.19379-1-frederik@codesourcery.com> References: <20211215155447.19379-1-frederik@codesourcery.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-05.mgc.mentorg.com (139.181.222.5) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Cc: Julian Brown <julian@codesourcery.com>, thomas@codesourcery.com Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series |
OpenACC "kernels" Improvements
|
|
Commit Message
Frederik Harwath
Dec. 15, 2021, 3:54 p.m. UTC
From: Julian Brown <julian@codesourcery.com>
gcc/
* gimplify.c (gimplify_omp_for): Use for_stmt in call to
localize_reductions.
---
gcc/gimplify.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
2.33.0
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 04ffbc256442..daa69ccf6202 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -12219,7 +12219,8 @@ gimplify_omp_for (tree *expr_p, gimple_seq *pre_p) here, because the code to remove reductions in kernels regions cannot handle that. */ if (outer && outer->region_type == ORT_ACC_PARALLEL) - localize_reductions (OMP_FOR_CLAUSES (*expr_p), OMP_FOR_BODY (*expr_p)); + localize_reductions (OMP_FOR_CLAUSES (for_stmt), + OMP_FOR_BODY (for_stmt)); } /* Set OMP_CLAUSE_LINEAR_NO_COPYIN flag on explicit linear