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] [PPC] Don't Save the link register when VMX registers are saved


Hi,
  Currently the link register is saved when ever one VMX register is
going to be saved.  This is incorrect as we don't need to save the
link register unless we are going to not inlining the saving of the
VMX registers.  For FP register savings, we only cause the link
register to be saved if we are not going to inline the fp register
savings, we should do the same for VMX registers.

This patch removes the check that forces link register savings if we
have one VMX register that is to be saved.

OK? Bootstrapped and tested on powerpc64-linux-gnu with no regressions.

Thanks,
Andrew Pinski

ChangeLog:

* config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
the link register
if one altivec register is be saved.

Attachment: vmxreg.diff.txt
Description: Text document


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