From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id 300A13858D39 for ; Tue, 19 Oct 2021 23:10:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 300A13858D39 Received: by mail-pg1-x533.google.com with SMTP id g184so20777802pgc.6 for ; Tue, 19 Oct 2021 16:10:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=SGKhXUAnSle3TeiRS6bRwkHL0qFgngRDPcjPY9OI8SY=; b=5FZDEathl4WWPAaEDIxvpSOd7aWtPU3bCabZMRKIPoStNmlMl7oIJHcsj19TOMwzdq 87tsMd3LeBqzAPiOojlFZzxDGl4BCRecMEp0XhA7ScWqw0ARQInkVWamat6136FlX0j/ 7KifCGPU3pVH9JEmRr2HNxdAj2AFwfhdcj4zhxvx4VBkKyqd8rxrNGh8LVsYhsEft7bA BV4nZ+u3FnyBMG/YIPKdxJL2X0eMz53YnvQxh6EXS6cjxMpp3rc3uir5up+KPqS4nxtf UzlnoHW4jNpJ9eFOghauG8bYLvstYwxFZhgZjHjLlwycPVhgdDL1nA2ommKAh0nv2MdZ MamA== X-Gm-Message-State: AOAM531Gmpw0v9VnmWXai8T+OhLvOFPlCZjeLbLyJC0M1E552Q+2FnMo sBrnjQwdAqpmgQuDr8UMRAvy9HkosEw= X-Google-Smtp-Source: ABdhPJzrZ0jRlpJSkbWnXamJHah8oWxR6aVL16iuJK32sWvCfXsuV7CFv5vDygpV8Vd7BO+wfllnug== X-Received: by 2002:a05:6a00:14d4:b0:44c:cdfa:f8f1 with SMTP id w20-20020a056a0014d400b0044ccdfaf8f1mr2569250pfu.58.1634685031953; Tue, 19 Oct 2021 16:10:31 -0700 (PDT) Received: from [172.31.0.175] (c-98-202-48-222.hsd1.ut.comcast.net. [98.202.48.222]) by smtp.gmail.com with ESMTPSA id m22sm273840pfo.71.2021.10.19.16.10.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Oct 2021 16:10:31 -0700 (PDT) Subject: Re: [PATCH 1/4] Add dump prints when execute_fixup_cfg removes a write only var store. To: apinski@marvell.com, gcc-patches@gcc.gnu.org References: <1634619244-18969-1-git-send-email-apinski@marvell.com> <1634619244-18969-2-git-send-email-apinski@marvell.com> From: Jeff Law Message-ID: <8a4e3372-7918-44d4-97f8-17d2d2b701a5@gmail.com> Date: Tue, 19 Oct 2021 17:10:30 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <1634619244-18969-2-git-send-email-apinski@marvell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2021 23:10:35 -0000 On 10/18/2021 10:54 PM, apinski--- via Gcc-patches wrote: > From: Andrew Pinski > > While debugging PR 102703, I found it was hard to figure out where > the store was being removed as there was no pass which was outputting > why the store was removed. > This adds to execute_fixup_cfg the output. > Also note most of removals happen when execute_fixup_cfg is called > from the inliner. > > gcc/ChangeLog: > > * tree-cfg.c (execute_fixup_cfg): Output when the statement > is removed when it is a write only var. OK jeff