Message ID | Y25QhrM0bMcTmpAn@e124511.cambridge.arm.com |
---|---|
State | Repeat Merge |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp747396wru; Fri, 11 Nov 2022 05:44:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf4u1bqUqhS9ob0FmN3VKSlcM94Xy4J0fzgjNmTqsAT7BsXyG4qgMDVC9F9UHGjZt0MmVhbc X-Received: by 2002:aa7:cd15:0:b0:458:5987:7203 with SMTP id b21-20020aa7cd15000000b0045859877203mr1456705edw.161.1668174277140; Fri, 11 Nov 2022 05:44:37 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id dk9-20020a0564021d8900b00462dee0d6bfsi2059977edb.556.2022.11.11.05.44.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 05:44:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="s85/Kl1t"; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E8DE83858C52 for <ouuuleilei@gmail.com>; Fri, 11 Nov 2022 13:44:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8DE83858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668174275; bh=khptpy1lwdKiCRzqrarPue129BX8qEtDY3Tl3Dk6OmI=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=s85/Kl1taR3ToElYecqY3dWwDTQQnsd56yI0ksO0MVPd01AWXa98wnDGq3h25rNVa 9EYGwOzBB3Y3eIc+6on+gULB6Av6kXujP8qP5367v3XIbseyZFS1BWAZEiZCGdXgzD vERSNDOy64JtUAiYlFXGHEsbVfuzVprJcv6JhgEg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2052.outbound.protection.outlook.com [40.107.103.52]) by sourceware.org (Postfix) with ESMTPS id A0CBF3858D1E for <gcc-patches@gcc.gnu.org>; Fri, 11 Nov 2022 13:43:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A0CBF3858D1E ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=GQuPq7r9yuD1x7TTFiuUaPlb5xaMKYHgaddVAYGwbXglqJAPHqo8/mUQ361dIYOsevOIlBS67sQOeJYR3c/TRXis+UcxQJCEPkmknQZTD+JK9oTbi4+vZkIJbZKy9z0K8usD4G1pOIyMY/vE5CAeWF5iwNU1WxsqRF/E/5TO5HikDbBmdiEqG0qaVizf/MMX483MQsgLTrSJ3N/rzTYslUe2jtOTmD5VeMH9n4l9P8BaHzdSjjPG4qJPv19NXoWWXW89h3C33bKIH4/a77kttIAcSe1obYpmqGd4JpaC9G8SIlOttZfHLCFlwHpKBosKB7udU6CoMJ5RZmo1BLeIgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=khptpy1lwdKiCRzqrarPue129BX8qEtDY3Tl3Dk6OmI=; b=TQQPlkQk1H6fF3fLTttVMF4bmarMq7fLgyKNXllzYizB8MNkKej/hIyXkE4bPnWzN6b7fVbQfNIGbsiA4A50pi/0UdjD3zdAzKk+bmnQt6qmJHjch3ezVAiqQge+X9w68unRutysrXdayyfBxONewY8zMX8U6RfruYbAr0BwBgUswDekrydvvXG8uKHP08PqDr0TMWYpcnLx4Cigkkllp+9tU9qeAruTQfRTjiaFS5EN1gFHTt8SFTqM5SPpKMXHv7cfZyuQusI7qfnLCaGJo8pz2I/NL5KIoEdUPXRTUGWBZ98jzFBGan1DATA0CXoCkFFPUT2ZAXbvbKjQGdQe2Q== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) Received: from AS9PR06CA0360.eurprd06.prod.outlook.com (2603:10a6:20b:466::16) by DU0PR08MB7787.eurprd08.prod.outlook.com (2603:10a6:10:3b8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.11; Fri, 11 Nov 2022 13:43:37 +0000 Received: from AM7EUR03FT037.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:466:cafe::e) by AS9PR06CA0360.outlook.office365.com (2603:10a6:20b:466::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.27 via Frontend Transport; Fri, 11 Nov 2022 13:43:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT037.mail.protection.outlook.com (100.127.140.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.12 via Frontend Transport; Fri, 11 Nov 2022 13:43:36 +0000 Received: ("Tessian outbound aeae1c7b66fd:v130"); Fri, 11 Nov 2022 13:43:36 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1dc7eb734fd9276c X-CR-MTA-TID: 64aa7808 Received: from 99b3f8e7fe60.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id DF0F38DD-8548-48B0-841F-156328C41236.1; Fri, 11 Nov 2022 13:43:30 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 99b3f8e7fe60.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 11 Nov 2022 13:43:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hlP39bib8X5kcy+mwKwxjFPkyp5bUeIj/z3HFL9OOvHz36Z4go3OVmRG9CAJdhdtdxBPEnyh8r1UKhJY5o6KyTWdehBMkggBlDADJ85x5KptbFyk/nWAVPYUCTZT1PRB2x8YUrSv6f0h/6YqUK2o1ihl68TBrAveDFzKcEF8lU+MOTmoPlipnHC8vCb9U8pyYqmHzkjj9qZHNxp+HIZiU2o5A82OnV6Xwq8B9WFDp0nRZ0J/N2l4L7WQuCBx64JdxdG9Eq/30VWsB1Yqhuc9Ar3vzYKSll9LdqT6/sEe6Ep6qAXE8PMLjUADhNaZ10Z1zlQaDdwUIFNzH7k71sPhtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=khptpy1lwdKiCRzqrarPue129BX8qEtDY3Tl3Dk6OmI=; b=E3G6+ORuz74GCGcGXGFm0SEdfkmYJP6s+eK/j4OJfqkSfc82y6mMNto9TT+v9Kta5N/CSPY10GkGobDJl7aDbANCL2ZrnssNMaYJSQOEw5Gn2y7s9Diuh/9DEtivtztFN8bffVnq4hEVQxyhEs9G1H+iAfi65h7a6tXhXLlOFSTuRnv4jpqFlZGQatv7h7Ut1lB0Oxc7cvRTfHKos/8Qf30Opmx1a36fJHI2dAsRXwIVbbsXy4VOGIzKRcItYFV+JIQN7OenAH2HkK0ylPCsZx9Lvx/VQyFxKK3FwWAXQuJf9MHLB2fXbggGgc+l06IHB1bOzq+dVRRyn3Rfol9YAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by DB9PR08MB8315.eurprd08.prod.outlook.com (2603:10a6:10:3dd::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.12; Fri, 11 Nov 2022 13:43:20 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::8256:29ca:bcd8:b754]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::8256:29ca:bcd8:b754%7]) with mapi id 15.20.5813.013; Fri, 11 Nov 2022 13:43:20 +0000 Date: Fri, 11 Nov 2022 13:39:18 +0000 To: gcc-patches@gcc.gnu.org Subject: [PATCH 0/8] middle-end: Ensure at_stmt is defined before an early exit Message-ID: <Y25QhrM0bMcTmpAn@e124511.cambridge.arm.com> References: <Y25OIx12f6lJmhtC@e124511.cambridge.arm.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <Y25OIx12f6lJmhtC@e124511.cambridge.arm.com> X-ClientProxiedBy: LO4P123CA0262.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:194::15) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|DB9PR08MB8315:EE_|AM7EUR03FT037:EE_|DU0PR08MB7787:EE_ X-MS-Office365-Filtering-Correlation-Id: 312699d4-40c3-4254-ade3-08dac3eabc04 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: /0/bWPRiacKsKwcBIoqlmpJQxnUIYcPuGMDLqF4yd/B3XtH1Ybf2+G9euJWYTRPkl52jdcLD39IPSMBmDM28OS+ksmeURLlSsgtg6gozNLVuvuenLpyajJF8i2SJeKQcWigGDymirWH5XLp9yG2NpCbIhCrMp6av8nc2bkSRVNaPqIvc+roGjwt7vdVq8Qx9T6zsORVZgEyGTO3/FGAUOBTQgb4TrQ1PMVTuS6P76Wq9ufUohf6sQah269zWMX+2bKzsXSPqI1+xGr0MKU0g6g4FZwMx7pJPctqWR8J3oq0FPpD1aqw0jO+D/kz+rknRSMzUEUhl62nze0otkehkgYQAX0NTcXNlvX86HTGrxFG/kf5aypA861IShWLZVuRn8We9T9twqchgv8Wn5JNSWQN3eLOgg3y7g4IWDQ041ZOxlSYwCGcPKOufWbPU67xs4LXQRbfiYXUQfPHNdEvP8v41lzZzfTKb27ipBvy2KjTCNYVc74RdGLdOPsUMwtsS9tBVdGfhPaq4+aFErBWcywpF/hLtcSCzQhReoVEVGTsLEY2sVZkp3dZitA0UEIy1GFcAaccpvZjHvrpHxMRiDrBWs92cKdH+VPgvCNiXTiZsw874C7ladzQ4032AvilIhMlJS9gDXP0mfJkbpyKdgmI4kso8fSXSPZ6XUu4+QWPqLcYAIfTTroPegMvE+3ZOwqYr6GJLnHnfBnp86g6YLA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6678.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(396003)(366004)(39860400002)(346002)(376002)(136003)(451199015)(86362001)(44832011)(26005)(2906002)(6506007)(5660300002)(186003)(38100700002)(478600001)(66556008)(6486002)(8676002)(6512007)(316002)(6916009)(8936002)(41300700001)(66946007)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8315 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 7bea8420-2d68-4d44-152d-08dac3eab212 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hJ3YO3llRoByJmDDUUcPqLXHrB5Ht6Ng7MQiw3NbuK6gRVC9Zqyf2g2nlvJPznUoxwx/SjwakG0jImBJz/QZYdFPCc+t/vBORIjvfeejFipWS1/iYp5SNEeysNQYDEp/c2M03tm6efdFrHecZW5OWUJ4sih37Qx/ZvLdhBN/LuRth2pe8HwHhsMLYEIE3/Nnoex39MBoAuwuLyH14g7qxkZE2krgRO7IkhmOKXQa7OPA3izfzeHW92Y5yqYnZhzFG5KeTb+WPGU2z6I5+F/3jK/0QpdKJbE04ZMTNVGBkcCSBKne97uk0N7EvfikPDS/KOLmc3VKkohMnao5llOCI+32wC7vy+B2ymPN7zRycQtvP5ZD/7G+IB4f6uJQ6/nkWAde+/36AE5QAyFgv01GJNcbG/YSkVHRyNhWNTYWI2Jsa9CJY9aQUer02iNg8YWO6nikdyUpP/rAXLgCcKZOKxTIzUn22eTu6YPUknw4gG62fdg9obbQX8YkbH8rM5PjcbbPzHABfk4Ked+9VpdFSsgi5bmafeONatrzN0ZIcv9NN4A2CW08Wb5s1Li3fuwEasjUmgsZfdkZhtHTaSCi27tCI0ZDpTW1Tq7qdhYJjEMfxPEpbDOJZnEgskRTCoTbFwRXI2F53eW+Gq5g9IziiSupkZk+jKFr5GkYwtYCOsoI5wmkHvnk3gyW9FaRXhZ1/+kvjAHjnnSoSLQfNrRSfyemIGkWzJnFYd8qaMqXYsSvwNsBh1cwxRLKx3eMQmgVKEswglAowBn97T2G6dEKOA== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230022)(4636009)(346002)(396003)(136003)(376002)(39860400002)(451199015)(40470700004)(36840700001)(46966006)(82310400005)(186003)(47076005)(8676002)(81166007)(6916009)(478600001)(41300700001)(26005)(82740400003)(356005)(40480700001)(70206006)(316002)(44832011)(2906002)(6486002)(6512007)(8936002)(6506007)(5660300002)(40460700003)(336012)(36860700001)(86362001)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2022 13:43:36.9908 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 312699d4-40c3-4254-ade3-08dac3eabc04 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB7787 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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> From: Andrew Carlotti via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Andrew Carlotti <andrew.carlotti@arm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749207511229793505?= X-GMAIL-MSGID: =?utf-8?q?1749207511229793505?= |
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Andrew Carlotti
Nov. 11, 2022, 1:39 p.m. UTC
This prevents a null dereference error when outputing debug information following an early exit from number_of_iterations_exit_assumptions. gcc/ChangeLog: * tree-ssa-loop-niter.cc (number_of_iterations_exit_assumptions): Move at_stmt assignment. --
Comments
On 11/11/22 06:39, Andrew Carlotti via Gcc-patches wrote: > This prevents a null dereference error when outputing debug information > following an early exit from number_of_iterations_exit_assumptions. > > gcc/ChangeLog: > > * tree-ssa-loop-niter.cc (number_of_iterations_exit_assumptions): > Move at_stmt assignment. OK jeff
diff --git a/gcc/tree-ssa-loop-niter.cc b/gcc/tree-ssa-loop-niter.cc index 4ffcef4f4ff2fe182fbe711553c8e4575560ab07..cdbb924216243ebcabe6c695698a4aee71882c49 100644 --- a/gcc/tree-ssa-loop-niter.cc +++ b/gcc/tree-ssa-loop-niter.cc @@ -2537,6 +2537,9 @@ number_of_iterations_exit_assumptions (class loop *loop, edge exit, if (!stmt) return false; + if (at_stmt) + *at_stmt = stmt; + /* We want the condition for staying inside loop. */ code = gimple_cond_code (stmt); if (exit->flags & EDGE_TRUE_VALUE) @@ -2642,9 +2645,6 @@ number_of_iterations_exit_assumptions (class loop *loop, edge exit, if (TREE_CODE (niter->niter) == INTEGER_CST) niter->max = wi::to_widest (niter->niter); - if (at_stmt) - *at_stmt = stmt; - return (!integer_zerop (niter->assumptions)); }