Message ID | 20230417184701.217397-1-aldyh@redhat.com |
---|---|
State | Repeat Merge |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2332486vqo; Mon, 17 Apr 2023 11:48:00 -0700 (PDT) X-Google-Smtp-Source: AKy350azjA0XgSdQ1OWOs5aBD20rxYl5en3zSbNkCvjpvetdPxZTVs3FW8DGhyrvYsCxdYqsasXi X-Received: by 2002:aa7:de04:0:b0:4fa:4a27:adba with SMTP id h4-20020aa7de04000000b004fa4a27adbamr14192741edv.22.1681757280594; Mon, 17 Apr 2023 11:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681757280; cv=none; d=google.com; s=arc-20160816; b=MOm8dbzvpRdmF2FnqALg2WZ9VfByaHaukXUcbOwZMfY1w1KrKlAn9TwlVqpGLCiRZv Y9FvlF3t+X3ZpDfukcaCCHmn+y8j/43wW9/pz+20YG5DIfeBbNW/PFR2aCSy928I4l/O b1hdWwYhQXr9D05W3dT/Ysp4MBxEFMUnT3+IFRc08qgN7P4EgJek4bzkyFJeeghJ6y0L AVAPHunn7/gob3GbQwjwUGozECE43jvHgOt/YHorqRGMqLwFMOtr42uMA+yOMABVihNv 1E8UbTpzb418xb1pIrT4jCgazzVyJmvf/xdnxrkGRqdQhq7tizqjI3O0POwyI9mp4g0E ECcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=jRuVU4rNO15VkcRt0nN33FUGFFdxlartSrZNxMDpz58=; b=0l63ZkPxRgaTtx9v8DXtAws7vZNJblxwN5EdK1B4/2DHR808P+0FpxQW3hmXKlMllr O+eSkivX/cOeGgF8f7RH8sOR0OC7iJC7WiklnRpYL1ABSnMbAktHY9L7z2o3r88vYWVx BrEez1bv/53TPIMOb4fVMulESgfc+F/g74tK6vzTswWsI1Uh4Tw023ldPcEYYiSSfHpL WpJ116Jopg7y0ZIUEur/jMLjI6wK7xmrj/NHtFskm1jUolTxufCS9vQkb5Ve+Qs44BNG TvCFwMXc7KAZsaENfI2DTml/qTXQchv7gN5yN78k8HcD2x9baXSRYTKNIElav5Qb2Odb apog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=cYC+Sr8U; 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 ev24-20020a17090729d800b0094f0459ceb8si6784742ejc.40.2023.04.17.11.48.00 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 11:48:00 -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=cYC+Sr8U; 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 46DE63857706 for <ouuuleilei@gmail.com>; Mon, 17 Apr 2023 18:47:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46DE63857706 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681757279; bh=jRuVU4rNO15VkcRt0nN33FUGFFdxlartSrZNxMDpz58=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=cYC+Sr8UeVl+187TnwP1fV48ztfv0R3zTFQgZf/2vkSZL/U/R5Hdm5BIvZ5bsbIls ITp68AKYBN34kDepdkXB3Bmf243YIoHOO1C2N1Vf82lr9prfLmrM2RXm6sykQUkur2 qdKrDSkrvC41aEf/XczG4Qkb6rp9gfOLItS7YiWc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 9981F3858C39 for <gcc-patches@gcc.gnu.org>; Mon, 17 Apr 2023 18:47:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9981F3858C39 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-645-mzpag0LsPt2dWLvBKhS4jA-1; Mon, 17 Apr 2023 14:47:12 -0400 X-MC-Unique: mzpag0LsPt2dWLvBKhS4jA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2E722855300 for <gcc-patches@gcc.gnu.org>; Mon, 17 Apr 2023 18:47:12 +0000 (UTC) Received: from abulafia.quesejoda.com (unknown [10.39.192.35]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E10B2C15BA0; Mon, 17 Apr 2023 18:47:11 +0000 (UTC) Received: from abulafia.quesejoda.com (localhost [127.0.0.1]) by abulafia.quesejoda.com (8.17.1/8.17.1) with ESMTPS id 33HIlANs217418 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 17 Apr 2023 20:47:10 +0200 Received: (from aldyh@localhost) by abulafia.quesejoda.com (8.17.1/8.17.1/Submit) id 33HIlAwV217417; Mon, 17 Apr 2023 20:47:10 +0200 To: GCC patches <gcc-patches@gcc.gnu.org> Cc: Andrew MacLeod <amacleod@redhat.com>, Aldy Hernandez <aldyh@redhat.com> Subject: [COMMITTED] Do not export global ranges from -Walloca pass. Date: Mon, 17 Apr 2023 20:47:01 +0200 Message-Id: <20230417184701.217397-1-aldyh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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.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: Aldy Hernandez via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Aldy Hernandez <aldyh@redhat.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?1763450322327161249?= X-GMAIL-MSGID: =?utf-8?q?1763450322327161249?= |
Series |
[COMMITTED] Do not export global ranges from -Walloca pass.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Aldy Hernandez
April 17, 2023, 6:47 p.m. UTC
A warning pass should not be exporting global ranges it finds along the way, because that will alter the behavior of future passes. The reason the present behavior was there was because of some long ago forgotten regression in another pass. This regression is no longer there, and if there's ever any fallout from cleaning this up, we can address it in the pass that is missing some information. This pass hardly changes, so it should be ok to commit now. gcc/ChangeLog: * gimple-ssa-warn-alloca.cc (pass_walloca::execute): Do not export global ranges. --- gcc/gimple-ssa-warn-alloca.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gcc/gimple-ssa-warn-alloca.cc b/gcc/gimple-ssa-warn-alloca.cc index 5b220a5c68e..4374f572cd9 100644 --- a/gcc/gimple-ssa-warn-alloca.cc +++ b/gcc/gimple-ssa-warn-alloca.cc @@ -256,7 +256,7 @@ in_loop_p (gimple *stmt) unsigned int pass_walloca::execute (function *fun) { - gimple_ranger *ranger = enable_ranger (fun); + enable_ranger (fun); basic_block bb; FOR_EACH_BB_FN (bb, fun) { @@ -379,7 +379,6 @@ pass_walloca::execute (function *fun) } } } - ranger->export_global_ranges (); disable_ranger (fun); return 0; }