сб, 16 нояб. 2024 г. в 18:01, Georg-Johann Lay <a...@gjlay.de>:

>
> Some passes like CSE kick-up when they see a (clobber (match_dup)) in an
> insn pattern, like it is the case for avr.md's *tablejump.
>
> This patch uses a new "scratch_operand" instead.  As the clobbered
> entity is known, the casesi expander now uses REG_Z or scratch:HI.
> The latter means that the entity is not clobbered.
>
> The avr-casesi pass and optimization has to be adjusted to the new
> anatomy of the casesi / tablejump insns.
>
> Test results are looking good:
>
> With -mno-lra there is no change for atmega8, atmega128, atmega2560.
>
> With -mlra, the ICEs as of PR116781 go away.
>
> Ok for trunk?

Please apply.

Denis.

Reply via email to