From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id BBEC33858C62 for ; Fri, 1 Dec 2023 15:09:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BBEC33858C62 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BBEC33858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1032 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701443355; cv=none; b=YtsWN1CL6juRxI/jbThiNJZbarZujqIxGL47ejL38PWYF6xXKXrPGARf+fkTEfz8UqWu2h9ITLFL8TYgK+CeSMyPeZAzyFZyKby6m/v4Oe/tYLzVEDt1aww3qli5AL8+4J6Ek5NmRa57qN38+jqQC5fHl5o6v3MVjHKLQ8SS2cc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701443355; c=relaxed/simple; bh=pMcVLzrlkGqJb8YnpvwDLX69ekdFVtt50VR0m8TRqzQ=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=iLdNF82EeHohcuca4m78irtMUBTp93ZUPD1y8skS/h4m25/7Or1nel2Y/ZO+r1hsZfLmJ5i+Sh2YnwiEorQPBfdAoue0vV2UvYXziF6tuQbPsnQSpnVG/OT0k2BON+Tw+r7Wu/cGGUVsxuVJrg3HjRvGTAgswMXangTvEx5mK9o= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-280351c32afso2103637a91.1 for ; Fri, 01 Dec 2023 07:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701443353; x=1702048153; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VAhuX8qyRoDqALBp0o1UqyLeZU4agXwbjnRf/yVBXZg=; b=X6isdb2zOCD5voJKu40FwUOo44Tfw0hFT92+6Ur5TZFumDgsIPrQwx540XrMTWwbJC AjifVvRwFQ4B1JESEUAKR4ARU04dv1YqUAOUfL2XXUrYPGdUfJtAh6Y80GG7VDe3FehB q+7YsnDQKkvH2LL0f7rGNJzFHAIVf6kn0j4Ry470KlNRjw9mqzQH33E16acqiOZA+ydl lsFSx6OIoh/2RjYbSEUbRoPpg/mMz0FCrkTcNuxMACUVwdH2tZX0RXzw1y9Ga6k2He9i hQ/CRaxlMBUTy4Pn0iZ3xyeB8/hAzfrgbZLehayyC6X5PGL9OyVoPGySC6DOh7UQDCoX pbhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701443353; x=1702048153; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VAhuX8qyRoDqALBp0o1UqyLeZU4agXwbjnRf/yVBXZg=; b=TtwIj9lMesyNafDEmoTNkwBW8JPK3INz52ddfHUWnt5WE0Uf1sGeJXJI1WnAwWMmfe avGqHrmSd2W/QYu58wyTl8IdWapGYYnMhLIWgzzcCIZCJfN9vu2PnuVZNm0BLHpufT6h ThoRaNEBdtddr9u78Dpfh9udsKghbMs/0REqE5Yi+xCwBPzOnIGoOkcM/4TtnwuajVJi FWMDv/yGp8o5jRC+Y9bWu4iRujDqjnW6aTCPFv7LOphzxoDLE3Mt8b6GHzcPidK3teCb 2fmr+hJSNLnbrULhlHFF4iISpJn4/unoFlRZW9Sl42cQV9OwUZua96iljztaNVBV2jSh Uzsw== X-Gm-Message-State: AOJu0YzLUSjXz5IBqkdOmCiOPJWdZABzvSZKF8EeR9QK+itP3OaTpClz hjzmKeEkEg+82LGgQmNUnEAD6QrOcrPjbA== X-Google-Smtp-Source: AGHT+IGuhalz4Tv5I4sgsjO1XBO4KJ6/lU065IEX//eA+Ur/FQAX2igVXDQ0aAtSIVKhyB3c9zLdkQ== X-Received: by 2002:a17:90b:1a88:b0:286:60c:349c with SMTP id ng8-20020a17090b1a8800b00286060c349cmr12098922pjb.11.1701443352559; Fri, 01 Dec 2023 07:09:12 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id o16-20020a170902779000b001ce67fab3a2sm3402127pll.261.2023.12.01.07.09.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Dec 2023 07:09:11 -0800 (PST) Message-ID: Date: Fri, 1 Dec 2023 08:09:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFA] New pass for sign/zero extension elimination Content-Language: en-US To: Hans-Peter Nilsson , Jeff Law Cc: gcc-patches@gcc.gnu.org, jivanhakobyan9@gmail.com References: <6d5f8ba7-0c60-4789-87ae-68617ce6ac2c@ventanamicro.com> <20231201010817.0B1FF20431@pchp3.se.axis.com> From: Jeff Law In-Reply-To: <20231201010817.0B1FF20431@pchp3.se.axis.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 List-Id: On 11/30/23 18:08, Hans-Peter Nilsson wrote: >> Date: Sun, 19 Nov 2023 17:47:56 -0700 >> From: Jeff Law > >> Locally we have had this enabled at -O1 and above to encourage testing, >> but I'm thinking that for the trunk enabling at -O2 and above is the >> right thing to do. > > Yes. > >> Thoughts, comments, recommendations? > > Sounds great! > > It'd be nice if its framework can be re-used for > target-specific passes, doing quirky sign- or zero-extend- > related optimizations (those that are not just sign- or > zero-extend removal). Perhaps most of those opportunities > can be implemented as target hooks in this pass. Definitely > not asking for a change, just imagining future improvements. > > Also, I haven't followed the thread and its branches, just > offering a word encouragement. What kind of quirky target things did you have in mind? If there's overlap with things we need I might be able to find someone to take it on. Or might be able to suggest how they can be handled. jeff