Re: [PATCH 04/12] mode-switching: Fix the mode passed to the emit hook

2023-11-06 Thread Jeff Law
On 11/5/23 11:47, Richard Sandiford wrote: optimize_mode_switching passes an entity's current mode (if known) to the emit hook. However, the mode that it passed ignored the effect of the after hook. Instead, the mode for the first emit call in a block was taken from the incoming mode, wherea

[PATCH 04/12] mode-switching: Fix the mode passed to the emit hook

2023-11-05 Thread Richard Sandiford
optimize_mode_switching passes an entity's current mode (if known) to the emit hook. However, the mode that it passed ignored the effect of the after hook. Instead, the mode for the first emit call in a block was taken from the incoming mode, whereas the mode for each subsequent emit call was tak