From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 1B2AD3857C4C for ; Thu, 28 Oct 2021 13:39:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1B2AD3857C4C Received: by mail-pf1-x42c.google.com with SMTP id 187so5978114pfc.10 for ; Thu, 28 Oct 2021 06:39:00 -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=FS4CZxFvSc8suNJ/+sEIIZBloRZGZ0tmFcnAqPzkdns=; b=WPBXoMeWIvzm+fZ/klfGhN0HrVq8VsZGWIHFrMT6d7V+jmfI5rn5TpjeaSasCbeV/i +k+Du4to1bNnbxDC1iM7MUXPHF3drY2n6gjeqVri6A+LUCncJ6PpvvBmVK25ZpGZoYt6 FvUCsKn5FyO41RGSYrHuMfjrv4IU9ABWLuKeaOhJGMCg2ED1edU2xD8VRmY079kCVwY9 05XdkcQtyLowfTG0FfcQnhJONsc2nSyxwTyus0g2etQbL1gs5X90UVo38EolDlyJ5cYZ BC4lGBkOB6Be23W5J8erL9jVmanIP6ganI3dT6CP6zTng3ELeQigXevnIDnvTBmuYoiY jjLA== X-Gm-Message-State: AOAM5338fmGw3NaK2OO8G9zksZDmpc2yl47POSofFIsjOdfAH7Zkb7YS NvR2fbMbUcw9Erw8gmQDBeQyHXDvZ9o= X-Google-Smtp-Source: ABdhPJxlGesjJjWhPYnpvXKkrK4Lw8smlGVRqdYhfiO2bWX3GqK4GMNpU0il+YrkqvzaDwFWNM6/oQ== X-Received: by 2002:a63:1422:: with SMTP id u34mr3281324pgl.130.1635428338893; Thu, 28 Oct 2021 06:38:58 -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 c8sm2986575pjr.38.2021.10.28.06.38.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Oct 2021 06:38:58 -0700 (PDT) Subject: Re: [COMMITTED] Fold all statements in Ranger VRP. To: Andrew MacLeod , gcc-patches References: From: Jeff Law Message-ID: <8afda780-fe63-5fdd-6d94-e18c8f605bd1@gmail.com> Date: Thu, 28 Oct 2021 07:38:56 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-3.9 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: Thu, 28 Oct 2021 13:39:01 -0000 On 10/25/2021 6:03 PM, Andrew MacLeod via Gcc-patches wrote: > This patch changes the ranger VRP pass to simplify all statements, not > just the ones with ranges.  I believe Jeff had mentioned we were no > longer doing this a while back.  Now we need it when running as the > VRP2 pass to satisfy the testcase: gcc.dg/wrapped-binop-simplify.c I did :-)   The lack of folding in [E]VRP caused a critical function in perl to be ever-so-slightly larger and not be inlined leading to a measurable performance regression in spec when compiled with gcc-11.  I never bothered upstreaming our internal version of this as other (non-VRP) changes on the trunk addressed the problem. Jeff