r236197 - in /trunk/gcc: ChangeLog config/aarch...

ramana@gcc.gnu.org ramana@gcc.gnu.org
Fri May 13 09:23:00 GMT 2016


Author: ramana
Date: Fri May 13 09:23:28 2016
New Revision: 236197

URL: https://gcc.gnu.org/viewcvs?rev=236197&root=gcc&view=rev
Log:
Set TARGET_OMIT_STRUCT_RETURN_REG to true

The reason this caught my eye on aarch64 is because
the return value register (x0) is not identical to the register in which
the hidden parameter for AArch64 is set (x8). Thus setting this to true
seems to be quite reasonable and shaves off 100 odd mov x0, x8's from
cc1 in a bootstrap build.

I don't expect this to make a huge impact on performance but as they
say every little counts.  The AAPCS64 is quite explicit about not
requiring that the contents of x8 be kept live.

Bootstrapped and regression tested on aarch64.

Ok to apply ?

Ramana

gcc/
* config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set to
true.

gcc/testsuite

* gcc.target/aarch64/struct_return.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/aarch64/struct_return.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/aarch64.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list