Message ID | mptr0l482cv.fsf@arm.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2260478vqu; Sun, 5 Nov 2023 10:47:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGREcwx8cMhQQAmDIi2rKEPusKJlJ51t0197DHUK+/nFKQtR1meMnPqRyKpvMDI6mjfOoLg X-Received: by 2002:a05:6214:401:b0:671:567d:b13c with SMTP id z1-20020a056214040100b00671567db13cmr26127052qvx.63.1699210025813; Sun, 05 Nov 2023 10:47:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699210025; cv=pass; d=google.com; s=arc-20160816; b=y/qHEY6A+rLCLLi+HZjIQ0BM5j1YMV47dVHJgXfBhPjKot6Zq4vDOFzwC/r84dBw7f 9pSWofQ3JRdaM6/F8SSwLA/CNSVvFhhCQRF0vx46kQFsJgGIaBBG2ItjRYcpIOE7XeZV fZZEqO65K4XTBIBkMpzyJ/0xaQUYtCy2r43tK4d/AfVSbxUv6+K7IayTo8bSbuvb0Zol KmVrAyeD4MLsz8vuUBy2dn8VIetB3uou6l65Hia7DTzxwFX6lT0+3YTtSFQwY6uwUpCG vknFKlmrhTZFv1caDCOHmSfkV4sj1OwajQjLQF0fPNN2VCOLlW9a3rMVa//u0ZyOoVqv tI2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:in-reply-to:date:references:subject:cc:mail-followup-to :to:from:arc-filter:dmarc-filter:delivered-to; bh=J3SWSF098EprzuxsRtGm5B2lWIW+A6whKUstC2vv/pw=; fh=+zKahnQ9dI9rCMQA/vTUSn1PPyLwgfSULGOjxoIZkos=; b=OZXMVGrskpK8C/WKVr4f5yT/F19uLCnI/ouQqqpcUharBMgq6wrRgWm7tsnSUV0luU O0NUFf37YyupZXpjNjknKcJm3GMPVkt+Vz+svFTx4LEYSGC3NM5sGsFoZqs2BovzFWkB 8+mtOOFsgdD8VnrOBZGTPEmDjwM7AGKJSai3XscrHgkdwES2MsJ7QeOiPV8wc7miVHsz cX/Q9KFllS/7bZikUB/PYL5INCsjOZ68O+nbUBxmWO9XMEcBSjNNpuKg940k2Zu4lcHV Ur4O2y/EyMlBYKBetb92J4HaEyxxMYNIEB+anH576iGXkYlCQAhKJK4OiKNvYUnXsF+L cyZg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id dv23-20020a05620a1b9700b00773c43e5e5dsi4757142qkb.651.2023.11.05.10.47.05 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 10:47:05 -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; arc=pass (i=1); 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9450A3856DF4 for <ouuuleilei@gmail.com>; Sun, 5 Nov 2023 18:47:05 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 555843856DDC for <gcc-patches@gcc.gnu.org>; Sun, 5 Nov 2023 18:46:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 555843856DDC Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 555843856DDC Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699210003; cv=none; b=QevBcMCgU1yY0VBjISYe5dk7lcfEFWDaj0DusZSuDprJlJ+1wShfUf0LY9jdVbKKgL9MKfoRqkFVnCqGZXbSt69EeQeWgEYBmhiSDEuS9VXzHErKoQzakMnr1gxL+aNPEU/HfD+11He7AYPK3EKr8hMCn0RI+WRWFmW45u9GIpg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699210003; c=relaxed/simple; bh=uaTo/AvwLzbmBYtyTmy6hqI/VOXIzKPDqR3Vs0yXMPA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Y5fCfQBRPaIWZf5u55QXdcbkWzjd83jTEKuRSW4/1BbEbGIdnuzjDEpvT22gvevifh4LlTLlzmtJAvYULhXFSvSRP981ddPWGf5n4whFyByesFvg7S2Ik3hU0Ot55BvPwQ+GDW8M7rj5x+SmOy2Sgbku8dd5s6Rof0NMrzeRmGk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C077AC15; Sun, 5 Nov 2023 10:47:25 -0800 (PST) Received: from localhost (e121540-lin.manchester.arm.com [10.32.110.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7D86A3F703; Sun, 5 Nov 2023 10:46:41 -0800 (PST) From: Richard Sandiford <richard.sandiford@arm.com> To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, jlaw@ventanamicro.com, richard.sandiford@arm.com Cc: jlaw@ventanamicro.com Subject: [PATCH 02/12] mode-switching: Add note problem References: <mpt34xk9gza.fsf@arm.com> Date: Sun, 05 Nov 2023 18:46:40 +0000 In-Reply-To: <mpt34xk9gza.fsf@arm.com> (Richard Sandiford's message of "Sun, 05 Nov 2023 18:45:29 +0000") Message-ID: <mptr0l482cv.fsf@arm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-23.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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.30 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> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781750851905574849 X-GMAIL-MSGID: 1781750851905574849 |
Series |
Tweaks and extensions to the mode-switching pass
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Richard Sandiford
Nov. 5, 2023, 6:46 p.m. UTC
optimize_mode_switching uses REG_DEAD notes to track register liveness, but it failed to tell DF to calculate up-to-date notes. Noticed by inspection. I don't have a testcase that fails because of this. gcc/ * mode-switching.cc (optimize_mode_switching): Call df_note_add_problem. --- I was tempted to apply this as obvious, but wasn't sure if I was missing something. gcc/mode-switching.cc | 1 + 1 file changed, 1 insertion(+)
diff --git a/gcc/mode-switching.cc b/gcc/mode-switching.cc index c3e4d24de9b..8577069bde1 100644 --- a/gcc/mode-switching.cc +++ b/gcc/mode-switching.cc @@ -541,6 +541,7 @@ optimize_mode_switching (void) pre_exit = create_pre_exit (n_entities, entity_map, num_modes); } + df_note_add_problem (); df_analyze (); /* Create the bitmap vectors. */