From patchwork Wed Apr 19 12:14:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 85363 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp340663vqo; Wed, 19 Apr 2023 05:16:03 -0700 (PDT) X-Google-Smtp-Source: AKy350YuxxUY1fGHWjuZSV+ZvrRfI8zDKNb6qrhEhUHlbbgc/0zbANCn5Wocy4Sl36RoZpudiLPQ X-Received: by 2002:aa7:d98f:0:b0:506:a663:5c1b with SMTP id u15-20020aa7d98f000000b00506a6635c1bmr5365474eds.18.1681906563370; Wed, 19 Apr 2023 05:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681906563; cv=none; d=google.com; s=arc-20160816; b=CuIsVnd7UJN4Q+92PpYV0oJL8S7BztVLQGqBOxggCgi/TWLA06OE9s/xuNH0Sccn3K xzLVejN39fMPRthr0iP/vNscTY2cy80XJB+AVtRB1xoKhmsiUYkknoKKX7C/cJeUFJC8 ly+aATw5gp6sB30q5lxefLNmQ1ALqWIOI1iuYwM3ATiHexhNUcFTaaHfZadjyhWuzWaN 7Vd4GLnyTHkas6cJJx6BiHqew7OuPAhkE7bolTyQzASxtqT54b8bAU9fUlRwaghALq9r myzq+wM17QlWt1dlMEkZEPFRUo8z7JrJoBeQ7xMlXxKwE/NPxxzRvPnxzP9MNc8cRVmw +bGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:sender:errors-to:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:user-agent:subject:to:date:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=EWJO7h69uX6zTgVb49XapzFpUaeHop+JBnnhAQQOMig=; b=oJ1/gpM6I50DPqUODGdug/3eUTFfojpG4Ut/oTnxjkZHJOX2UFuaWfT24G6VRPukMA qYGKNPNq3SxxaNFCDs+OoqkiKjOEbV/VTn+1DOksG0bJTv9Aja7NEOrlZwthBo4u97nh qd19U+6jEvVdof1knTK0AWC0dtUw/m2BTlgQFdHtsgOaSA4EDcqp/PmzXVbSaWKBFYAT 3JhYGrWey2badHNCwFug/YL06G0lnpqAHmmMDngrFTDR2bETqyiNrJujs+fOTP2ZIXMu wT7p3vMHCfGNuUfdwqaPCTSawQsO26O3L7q+Wk0XMpjlmAUmLTg/ZUDfObdu0+FGkv0Y 9jjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=e5NmoeGF; 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 sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id a7-20020aa7cf07000000b00506bea09a35si3532405edy.433.2023.04.19.05.16.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 05:16:03 -0700 (PDT) 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=e5NmoeGF; 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 78B90385696B for ; Wed, 19 Apr 2023 12:15:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78B90385696B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681906522; bh=EWJO7h69uX6zTgVb49XapzFpUaeHop+JBnnhAQQOMig=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=e5NmoeGF4gIBOE/eAo+zfJ0Vdhj1K9nxmIS3X9QwQ2XAJJLR8nVMeGJAE5dWTmT04 n6Y7sLLbu1EF4/6VuyZcblH3O64/D75ZSzUwJBQFKCzrl1gmNbE1LPbcqh7fcLkkOL eUYqt776QioOVp4seVWfjljxkto2XRBgr+qVXn9Q= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 6FFEE3857034 for ; Wed, 19 Apr 2023 12:14:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6FFEE3857034 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id A7ED62199B for ; Wed, 19 Apr 2023 12:14:24 +0000 (UTC) Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 9D88D2C141 for ; Wed, 19 Apr 2023 12:14:24 +0000 (UTC) Date: Wed, 19 Apr 2023 12:14:24 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH 3/4] Fix do_sd_constraint escape special casing User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, MISSING_MID, SPF_HELO_NONE, SPF_PASS, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Biener via Gcc-patches From: Richard Biener Reply-To: Richard Biener Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" Message-Id: <20230419121522.78B90385696B@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763606856432322073?= X-GMAIL-MSGID: =?utf-8?q?1763606856432322073?= The following fixes the escape special casing to test the proper variable IDs. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. * tree-ssa-structalias.cc (do_sd_constraint): Fixup escape special casing. --- gcc/tree-ssa-structalias.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-ssa-structalias.cc b/gcc/tree-ssa-structalias.cc index 89027ab573d..4f350bfbfc0 100644 --- a/gcc/tree-ssa-structalias.cc +++ b/gcc/tree-ssa-structalias.cc @@ -1706,7 +1706,7 @@ do_sd_constraint (constraint_graph_t graph, constraint_t c, flag |= bitmap_ior_into (sol, get_varinfo (t)->solution); /* Merging the solution from ESCAPED needlessly increases the set. Use ESCAPED as representative instead. */ - else if (v->id == escaped_id) + else if (t == find (escaped_id)) flag |= bitmap_set_bit (sol, escaped_id); else if (v->may_have_pointers && add_graph_edge (graph, lhs, t))