https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64785

--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to Oleg Endo from comment #3)
> Created attachment 34982 [details]
> Add sh_pre_ra RTL pass

Right now I can think of two alternatives for this PR:
- convert respective insns into insn_and_split and emit a pseudo + move in
split1

- catch imm8,r0 insns in sh_legitimate_combined_insn in the same way as it's
done by the sh_pre_ra pass above.


I think that an SH specific pre-RA RTL pass could be useful in the future, for
example to improve R0 utilization, even with LRA.

Kaz, do you have any opinions?

Reply via email to