From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2045.outbound.protection.outlook.com [40.107.15.45]) by sourceware.org (Postfix) with ESMTPS id 4AB703858CDB for ; Fri, 1 Dec 2023 16:17:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4AB703858CDB 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 4AB703858CDB Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.15.45 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1701447456; cv=pass; b=lz/V20+4zcYukaDg9EnA2dsdpIiwzVqwr4UbvAhIe51UWKeHCQ1sGrQ460lGBqBlF0UbfVyGwc4FyA+Qq5ZVSABaONrQxxZCirwTOWX2lzWmj0K3ejbrGGUFY0YaDKJ5z1KqxTALtvJB6Sbpb/c3VsVvnCPN3NmPaCilD3v4hh4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1701447456; c=relaxed/simple; bh=vAJWqC6IEFgn/5CR3fapnnIljZkJ0aHn8P2AedX+8S0=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=CcR5iqy0TAJFWXtphwds0ub1RSIuVwn+mCDMn/6iKUBvCB8nAzWUvIofg7s5183clR54QQj57vVI9rJmKuJG1ufsDmelWGuOuqOcHaxhSQaGiITeNiwx4oo+UOhAg8vExKA0OkdKpg+Y++A/c8o3rIGqz5b3dufTih9YdhBPiS4= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i+8EGyohshZufS1e11OPDeOPVONttAM9KnxTqmhRz4+ARKXUmmwZqrdr+vixWxKkSUZNCw20RfRa6Qa5haqOai5MFzfJttnDeDruTqpu/lWodBpXDhwiAddoo0UaNkHrNITA3u6C3amWc7hFWnuJHKVg5RTbi86WwlyoVP+k9QKcLZK740EPvxo4xLnawzZnHoO9+v4x0WNSmrDmP7f4lLqDSmekge9ohDIy+3Nv65BzJRoM3nlv0mdU4EvTE9u9vKNvCNWkmkLuvFFFyOh1PvBaVBvehmogIxRZPdrmcJxn+F+S55+snXRwrq19kiCmsuqulT1QbZLaL0T6caqr2w== 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=V8zc49VzMCSbJ8oz/tenK0nYpQ9iU94feTm9P+2Pe5A=; b=UQpadHykXmyJTPVk4kprSIfNT5+1NZr1e7EZew+QZW80cTSSOX2u21juxNMjs54WJohmV5ZW/y5IGwHAr6Cb9e6MtmAUtgx6R1AyUxxw18bCUQ1ZzoX40dLmoNrF8gl5Bhm2inTzBhWg48wURCrqYsIAE2N/taFXTFyOVBoH6tACEf3ICilwMhHjzYVFI9DvbVk1vV0hMuBpH5f82+yyr+ajZLatB0Jq/OLSGx3+MtkeKH2m6Y+Rq//F6zD2X5/BBVgCiOykU3ulgV4IKkB5qZGlJVNkO2/lUddoLauXQtCYuqpL7+hwN1W1qXYsrZgOlK2xfLC63vftzHU5kSyBtg== 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=V8zc49VzMCSbJ8oz/tenK0nYpQ9iU94feTm9P+2Pe5A=; b=QRARxFw8xQBBFLGfSplx4K/hDhbeIUYYXZCS7uKpPEO+C8dWPl+nx0QmFWgwqNNT1UMmtSHiSYfeunXR5ChmYkeAFZcLA6Nsimo2SsFxflzysaO7SXi+NdZ3UMRtQHzocWYO90jF93FwGcfgxXfPp2sT9AhXlrGaIzcvzGwMEpY= Received: from AS9PR04CA0154.eurprd04.prod.outlook.com (2603:10a6:20b:48a::17) by PAWPR02MB9031.eurprd02.prod.outlook.com (2603:10a6:102:337::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.24; Fri, 1 Dec 2023 16:17:31 +0000 Received: from AMS0EPF000001A3.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::f9) by AS9PR04CA0154.outlook.office365.com (2603:10a6:20b:48a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.26 via Frontend Transport; Fri, 1 Dec 2023 16:17:31 +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 AMS0EPF000001A3.mail.protection.outlook.com (10.167.16.228) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7046.24 via Frontend Transport; Fri, 1 Dec 2023 16:17:30 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) by se-mail01w.axis.com (10.20.40.7) 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 17:17:30 +0100 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAIL21W.axis.com (10.20.40.16) 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 17:17:30 +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 17:17:30 +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 72D65F08C; Fri, 1 Dec 2023 17:17:30 +0100 (CET) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 3ED5820441; Fri, 1 Dec 2023 17:17:30 +0100 (CET) From: Hans-Peter Nilsson To: Jeff Law CC: , , In-Reply-To: (message from Jeff Law on Fri, 1 Dec 2023 08:09:08 -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> <20231201010817.0B1FF20431@pchp3.se.axis.com> Message-ID: <20231201161730.3ED5820441@pchp3.se.axis.com> Date: Fri, 1 Dec 2023 17:17:30 +0100 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001A3:EE_|PAWPR02MB9031:EE_ X-MS-Office365-Filtering-Correlation-Id: 3fe3cdee-70c0-449e-21d1-08dbf28904d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tvEeWIV1nM1aWizeOGpfx1uFMVCTyJKkqbcjjjxnSjM3J01oyVyo6t0MDJ59XhLDd+tcqgM38pRczNvD2xeWiE5z6havSb48wqN1/1TnHDNeTpeF3xtNLzxny9Qzfn+ePk332RTaFCwpfESP5lFpNichMMEtETOKzFKZqLAOyM7H52VDq+I8+1iBWqWs2WV/zfDV4qWjSNdeUTIVHemjs1M/Nes2pGwh8Pn4SrD3qao5VOhtgGrITfnshKk+ZRDhVcjtiMgUeVt+R1YK07h4Ffnl4ioQXzTYHuyN4xK27GwAJc/ygX/HhB9W/iJTF9YWsmeHXDrDC8uWi9rV6HbVTtl2suhOK++IbxB8sLEPaSEJT2yLiHKOySP1aggoX3dr1YxcCKpel/rbI7uKXKthBjhxyw5TiI+7iK4HyhUDUQnDHGr13bUcKPzBHZWr1EKlHt/7W4v7p9EKNLUwqI6EubXVAC+U116mrQxhjEOB1caXiWHKmux//4sWTD/2MCqixt0c4WrOfcLZ3xVphQpIH7f2tpj31vrigBtRVuefw2+VZqWzMjwA79JDvvurfGYe5cKEL//8+Qnyuwkf2okBqj5dqmc3VS4hn0g6ZJg2KdVA1kBOdYvJOgVQGeLzY0KW2W8zoMwtU5TrXT0ZiW+cVqPkGF+VXD7ZfM3h66Sg7p74I2WmzKfWW/jEypVlyWa1sGdpokDkxWrekG8O0D0KyADQ0YJCO1wFcd9fqc6BqPUbeN8h/I3ylwDu3TjLnaukSK/u/p+OWfsWB62rDHAcyg== 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)(346002)(376002)(396003)(39860400002)(136003)(230922051799003)(1800799012)(451199024)(82310400011)(64100799003)(186009)(36840700001)(40470700004)(46966006)(336012)(426003)(6266002)(40460700003)(1076003)(26005)(8936002)(70586007)(316002)(36860700001)(83380400001)(47076005)(53546011)(5660300002)(2906002)(54906003)(70206006)(6916009)(4326008)(8676002)(42186006)(478600001)(41300700001)(82740400003)(81166007)(356005)(33656002)(40480700001)(66899024)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2023 16:17:30.8262 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3fe3cdee-70c0-449e-21d1-08dbf28904d5 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: AMS0EPF000001A3.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR02MB9031 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: Fri, 1 Dec 2023 08:09:08 -0700 > From: Jeff Law > 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. Sorry, I was hoping I'd not need to substantiate that part outside the "not just sign- or zero-extend removal". :) But perhaps: somewhat trivial would be where the sign/zero-extension is hidden in an unspec, so the target needs to be consulted regarding possible elimination and how to do it. If that doesn't do it, just ignore that part of the comment. I have nothing substantial besides this pass sounding like it'd be a great stepping-stone. I'm having trouble making up hypothetical cases here, and it probably wouldn't help. I hope I'll find time to try the latest version but definitely no promises. brgds, H-P