]> git.ipfire.org Git - thirdparty/gcc.git/commit
MSP430: Define NO_FUNCTION_CSE
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Tue, 21 Jul 2020 16:24:03 +0000 (17:24 +0100)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:18:50 +0000 (13:18 -0300)
commitf73e3c49898d38a51c3619ecc23c6e5b2b47001f
tree8a47b3356da96867272b5b96b38486d7aa386edf
parentff3e626e9c06c5f8b090827b31a2a05102c01a6e
MSP430: Define NO_FUNCTION_CSE

Calling a constant function address costs the same number of clock
cycles as calling an address stored in a register. However, in terms of
instruction length, calling a constant address is more expensive.

Set NO_FUNCTION_CSE to true, only when optimizing for speed.

gcc/ChangeLog:

* config/msp430/msp430.h (NO_FUNCTION_CSE): Set to true at -O2 and
above.
gcc/config/msp430/msp430.h