Chung-Lin Tang <clt...@codesourcery.com> writes: > My fix here simply adds 'reload_completed' as an additional condition > for EPILOGUE_USES to return true for LR_REGNUM. I think this should be > valid, as correct LR save/restoring is handled by the epilogue/prologue > code; it should be safe for IRA to treat it as a normal call-used register.
FWIW, epilogue_completed might be a more accurate choice. It seems a lot of other ports suffer from the same problem though. I wonder which targets really do want to make a register live throughout the function? If none do, perhaps we should say that this macro is only meaningful once the epilogue has been generated. Richard