This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch (Darwin rs6000): Avoid saving LR to stack...


...when the only reason to do so is that the PIC register was used. Instead,
save and restore LR in R0 around the magic PIC setup call. (This is a
bigger win than you might expect; it often results in eliminating the stack
frame completely, and also may make the function a sibcall candidate.)
Bootstrapped and tested.


2005-06-03 Dale Johannesen <dalej@apple.com>

* config/rs6000/rs6000.c (rs6000_stack_info): Don't set lr_save_p
because Darwin PIC register used.
(rs6000_emit_prologue): Save LR in R0 around Darwin PIC setup,
if not done by lr_save_p.


Attachment: diffs8b.txt
Description: Text document



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]