Re: [PATCH 08/12] mode-switching: Pass set of live registers to the needed hook

2023-11-06 Thread Jeff Law
On 11/5/23 11:48, Richard Sandiford wrote: The emit hook already takes the set of live hard registers as input. This patch passes it to the needed hook too. SME uses this to optimise the mode choice based on whether state is live or dead. The main caller already had access to the required in

[PATCH 08/12] mode-switching: Pass set of live registers to the needed hook

2023-11-05 Thread Richard Sandiford
The emit hook already takes the set of live hard registers as input. This patch passes it to the needed hook too. SME uses this to optimise the mode choice based on whether state is live or dead. The main caller already had access to the required info, but the special handling of return values di