From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by sourceware.org (Postfix) with ESMTPS id C22E4385828E for ; Tue, 7 Nov 2023 01:12:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C22E4385828E 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 C22E4385828E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::12d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699319542; cv=none; b=XiSSONk3na0WrtCwHQ6fFCr7veWJlK1W4Gw5zvdfoefCl22Y+ct89/Us7G3mPMn00mX9iOetsJEU2rJbtVnCetjGWAFIONygDlV9zHpr0mxddWsQ6l4yXUGi0q06KG2uwoFSMC+astMC3SwfMmomi3/5gUapb7hbu8vhZHZ+6fY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699319542; c=relaxed/simple; bh=/MwxHiNetWw9VcQDoVbOPNzLVP5vwLPn3YyoQeI1Awo=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=mKazZjibs+gu/IyW5U/Hu69OgpfkpvfGTOsJCcpECM/P4o7cmRoB8zr5TrDI6aniFiTuHbClGz7BU1In7owyiL6DbkebtXqWxwlZdlXqOKVJ1ZwyI9gFpKnYQk7elfZCdZFqoWQCvIaR7W8RiD0BXgR3LTSebo1lscqTXK6/wl4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-359472f74c5so20298695ab.0 for ; Mon, 06 Nov 2023 17:12:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699319539; x=1699924339; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1UbK99NuzwiHxCKlkDTSbs+v6lI2lGQ2PO2VlXRB8FU=; b=KHdmWNoF+OdJ6+ZS03XR2LmUacd6s7P/uAWAVxhwWQSUng+ReLtcgMF6oCHuYBCc7w LJ6DbncsZDW/KqtpuH0slEcUhhrw1EuuI68DAWWu+ptOpTWCpipFAztPluiiLcAnaNzY LdUbvt7Hguipq3DwO97tD2fqQFSOTsaB5r5ZDR/+oFKQ1LTUWswRKlBl7GQnstEJoZgp iYViXCadPWmFgyLDaaXQpzZWnG7NgOfhmz4WVyUIVsX4cn268Skln498Mw5m6gBG2OLG iUuBfQBJOYUNlzA4rFrp/XRxWDNPE3uF9w8TcDuYb4CKE5JDvUVkizuXEWk8fa3Ix+KA g+/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699319539; x=1699924339; h=content-transfer-encoding:in-reply-to:from:references: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=1UbK99NuzwiHxCKlkDTSbs+v6lI2lGQ2PO2VlXRB8FU=; b=qo6/NxvncdfgrAoKas13bsppV8UmIu08YdjrvZ+zhGFNHEiQpenc6wZfo1GMvk5nPB BwYyKofZBifGVWYA7kZ+Au1HA36a4BqQsRaYLqEckWKN1WMwMB13sWrii3xQooeZODSd c/EpDNdFPiuGjjc6jJm52i3lCMGFzRsRD/c++Vb6gRaHqBeJ9bhR4Bxcz9zQjY7YDBf6 2ET1d0Rsr3F9PFsjU62rf3ZQP1iF0TbBZclPnmCMNpIJ7WMIOxJIDJ8Cx4wPrg3gPpqz /W0hua4l9JKvq8R7z0f+Wt6m9lNGWN0rQmHnyecYznIssvLgy1pububRe8Od1Mi/42Wi Ru3A== X-Gm-Message-State: AOJu0YwYydks7MthFGkzizuvqaIErkAimA62yg7B8UNzX+atXsi6FAgi xbe7k8PTjux8bk+K1FHlwb3JFWH4HMDnOg== X-Google-Smtp-Source: AGHT+IFiHIpst4mjEqTO6HNyPYd4F60yKVG8EBCltQPkf8pi7x6lZQrC7PRV0syAV1YxELgYb981oQ== X-Received: by 2002:a05:6e02:1a21:b0:359:3db7:54c7 with SMTP id g1-20020a056e021a2100b003593db754c7mr1453760ile.1.1699319539453; Mon, 06 Nov 2023 17:12:19 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id l21-20020a02a895000000b0045b05457189sm2366447jam.92.2023.11.06.17.12.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Nov 2023 17:12:19 -0800 (PST) Message-ID: <6e7a2c0b-766c-41ce-a398-1df195ef8bd8@gmail.com> Date: Mon, 6 Nov 2023 18:12:18 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/12] mode-switching: Pass the set of live registers to the after hook Content-Language: en-US To: gcc-patches@gcc.gnu.org, jlaw@ventanamicro.com, richard.sandiford@arm.com References: From: Jeff Law In-Reply-To: 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/5/23 11:49, Richard Sandiford wrote: > This patch passes the set of live hard registers to the after hook, > like the previous one did for the needed hook. > > gcc/ > * target.def (mode_switching.after): Add a regs_live parameter. > * doc/tm.texi: Regenerate. > * config/epiphany/epiphany-protos.h (epiphany_mode_after): Update > accordingly. > * config/epiphany/epiphany.cc (epiphany_mode_needed): Likewise. > (epiphany_mode_after): Likewise. > * config/i386/i386.cc (ix86_mode_after): Likewise. > * config/riscv/riscv.cc (riscv_mode_after): Likewise. > * config/sh/sh.cc (sh_mode_after): Likewise. > * mode-switching.cc (optimize_mode_switching): Likewise. OK jeff