On 2020-03-02 4:34 a.m., Richard Biener wrote:
Yes, it could be a good strategy. I'd recommend to try HONOR_REG_ALLOC_ORDER first with/without LRA.One could also simply pessimize R0 for RA via either an existing mechanism or a new target hook ...
If it does not work I am ready to accept a reasonable new hook for IRA and/or LRA. Some GCC targets are to specific and require a special treatment.