Patch (Darwin rs6000): Avoid saving LR to stack...
Dale Johannesen
dalej@apple.com
Fri Jun 3 17:25:00 GMT 2005
...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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs8b.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050603/69c2c2ec/attachment.txt>
-------------- next part --------------
More information about the Gcc-patches
mailing list