From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2079.outbound.protection.outlook.com [40.107.241.79]) by sourceware.org (Postfix) with ESMTPS id 126063858CDB for ; Fri, 1 Dec 2023 01:08:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 126063858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 126063858CDB Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.241.79 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1701392901; cv=pass; b=w3G6Nz5ooR47iSONEoNQHLUBeI85+exndpKil/fSuoW1EqemjGhgP4sBLMbl+fTPyV9mo4bWZaIi+Ln1aobx4ToP4wHWEn7WK4Ub6nkTz9UMeXEr5lETIRdBIgmVeSEcmIe3Mfjg6HLYdRKwnNAR+HWiTe9EBF4HtMJjHCaU1I0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1701392901; c=relaxed/simple; bh=dTy/9yF0ejJQaACwsMgbsAxANKhAebgzc1MHzxHmnMk=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=PSIMQ1Ac+VIszIgCHIz/Fd/Lu6vX//4uIO9HAPo5RDrA3U4oXJv4H9WMfjX+wygnqx0gqXzzLlh4Cznzfi6qh/DAsRu62pMPBe+jFh2ooBIzgzXEWE7I2UUkK6NZQFq0oawlZpZfKSRgxr1I+Q2Y6Hc6WizJYFYEfCe2+IjPiSA= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V8Bkcj7xFfWS16uiJofZVN1uEFQ+sOsDEKG41kRx15gDRzmEwiTGnFwbtguXGcZZCpY2eE4M8d9FwitlemP5zT/08KzkKY0KQQNnh0vuXPfiQZvoaU0K5kWqApGzLccinYX10pELGHwTTjXtqZjzf6FJB6UIFzSaiUUPwUVXHQY7BcmwAgpsxyF7Mf2GAOEaUMQuGLd7qI8FbQm/N0WGb5xf+dRMB3NYd3VUGNtjlUlJyqJVva4W1nVRIQ+O9Q9kmrYZdZ9YAsQxq1I/7sK01ZvQTLfn5oVWUOuGA+9KHKt9G5BruOvirqrKnjIqGibmx7gsl3uaad+puCvRlThXow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZEB87vYxFAVx8eFFNNM58eWa0Xbub/jf0h8xtcQin/c=; b=anPo++pZ60ljM5D2yM5jfuuiB/AL4Z5HywutkWUNH5qjcxXn97/3fui9ZjaOEOR5qnxN1Wk08UhX8YS7mLz3qWESAIIGPhqp1TTlaMJTCqrZ2mKOo8FjUBVwjGEXlhH+jAC1xcQ7Jf9zwAQZ4VsgkV5Nkw0nicuBLYudQafCwHl2us6MtQsDXn10fevRCLNDdUcoV6q0pwchBbSidn+BymOjhfivhIk2CYkeny7/NV6/Ke4ta9bS1CTSnp67LbG4UvPvTP+gKdwxuxp3IxsVXDWw/uCvNFBSveyVDpexpbeIOudZzQWmi06Qso/DuPU5PdMw6pCP12AiQg1X/j6cfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZEB87vYxFAVx8eFFNNM58eWa0Xbub/jf0h8xtcQin/c=; b=YZXVnDu6HxyXxPC8ZFVIvMSe6nCHGNLNm+QW3QnCbdub+NSNFDw8LgJ7htnkC3UqRtecJnjYWc6pIyOmlTvJjzh0wOgBMjt2GF0aq5/1Hx1/aGffN3O5oPkg78ka4XxOZqXOh1+dvFwjBa+sl09aoMdYUsrgH0Eum1VI7OgsPUg= Received: from DUZPR01CA0319.eurprd01.prod.exchangelabs.com (2603:10a6:10:4ba::18) by AS8PR02MB7272.eurprd02.prod.outlook.com (2603:10a6:20b:3fd::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.27; Fri, 1 Dec 2023 01:08:18 +0000 Received: from DU2PEPF0001E9C4.eurprd03.prod.outlook.com (2603:10a6:10:4ba:cafe::9a) by DUZPR01CA0319.outlook.office365.com (2603:10a6:10:4ba::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.24 via Frontend Transport; Fri, 1 Dec 2023 01:08:18 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by DU2PEPF0001E9C4.mail.protection.outlook.com (10.167.8.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7046.17 via Frontend Transport; Fri, 1 Dec 2023 01:08:17 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 1 Dec 2023 02:08:17 +0100 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAILARCH01W.axis.com (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 1 Dec 2023 02:08:17 +0100 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Fri, 1 Dec 2023 02:08:17 +0100 Received: from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 15EA6EF12; Fri, 1 Dec 2023 02:08:17 +0100 (CET) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 0B1FF20431; Fri, 1 Dec 2023 02:08:17 +0100 (CET) From: Hans-Peter Nilsson To: Jeff Law CC: , In-Reply-To: <6d5f8ba7-0c60-4789-87ae-68617ce6ac2c@ventanamicro.com> (message from Jeff Law on Sun, 19 Nov 2023 17:47:56 -0700) Subject: Re: [RFA] New pass for sign/zero extension elimination MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT References: <6d5f8ba7-0c60-4789-87ae-68617ce6ac2c@ventanamicro.com> Message-ID: <20231201010817.0B1FF20431@pchp3.se.axis.com> Date: Fri, 1 Dec 2023 02:08:17 +0100 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C4:EE_|AS8PR02MB7272:EE_ X-MS-Office365-Filtering-Correlation-Id: f9fcfd9a-bc76-4f97-2412-08dbf20a00ab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8cJqhMHvlVwUxgrF3+M57klj+P4DVoXcJ4vAY9/x086hR635GFDO8AuPjL1gWGPP86GtZjfbZEZb70lCfOAKeOhOFnLQbEt2y2z1sH1JayA+bsvtb7qL6Fn75EnEgzw8eSGY3WswIjPNMwcPuhdKUpbvX7t4/AfOKqBJq25NG+JESKzmz02pzgfDYzNDdRl3c/ulbSBIWLT9EBZG6JIM2moO0h36yO0FTp5PmPANiisa4/8oaX1nJnvGmtbi8GLfeWDbVopy4YrpL8cC/gmjFBI6/DQEElxOJADLfsKQu4hR9zReBPZHD13UTfLY330xF1BbPIotug1prHJR5C1EODWSfcrFbCA+hcPmmB1xGjfirv2vc2FP8Ujum6E/ASLZNaKidIWgM0dpEv25FhXZa10h7u9tSgoXEHAgBXYaQzovOs5X9NkusSW1yPC1PRu69GM6TnYh/riGuanlNSMhgccJEy88OuDSwlePBTVMdWJPkHHiHup4kiIfr5ukAI6XwBPg4ibMAJfEaTDuwgOUHxI2S2epMD2eqnbhyb1LophZfe8zT675J1jTquW/U4tPa+dvXuYeBqUq79YO188ec8VEnkOBFQiwd2NenUMRfSy1ifGeYAgGpRbc3eA6l/s4R4BNAe1kcfIoO0Ryj/2jBMiqfhGyPhtKQYxXO/rdGj+4oRI4pnBvIWNlc39fUNBskWF1NBEWYSKyKrYy+Vd6qbk4YCammVIk0ELv8DNQ7H2w4ACrd9aGsuzweWDpiZm6XGiLP2uZTBYS58po9o4fqg== X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(136003)(39860400002)(346002)(396003)(376002)(230922051799003)(451199024)(82310400011)(64100799003)(186009)(1800799012)(40470700004)(46966006)(36840700001)(5660300002)(478600001)(4744005)(40460700003)(2906002)(8676002)(8936002)(4326008)(316002)(70586007)(70206006)(6916009)(66899024)(42186006)(54906003)(40480700001)(36860700001)(47076005)(81166007)(356005)(41300700001)(336012)(426003)(6266002)(26005)(82740400003)(33656002)(1076003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2023 01:08:17.7086 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f9fcfd9a-bc76-4f97-2412-08dbf20a00ab X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF0001E9C4.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB7272 X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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: > 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. brgds, H-P