[ARM] Tweak HONOR_REG_ALLOC_ORDER
authorWilco Dijkstra <wdijkstr@arm.com>
Fri, 11 Oct 2019 14:23:28 +0000 (14:23 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Fri, 11 Oct 2019 14:23:28 +0000 (14:23 +0000)
commit3635c2bf7c40a959ebd257d4724ebf487155a343
treeb30bede846a1de6079e2879a544db9c58525d945
parentbd01f4da3ecc88b25712e2d2a8f5c7ab3ed1b0e3
[ARM] Tweak HONOR_REG_ALLOC_ORDER

Setting HONOR_REG_ALLOC_ORDER improves codesize with -Os, however it generates
slower and larger code with -O2 and higher.  So only set it when optimizing for
size.  On Cortex-A57 this improves SPECINT2006 by 0.15% and SPECFP2006 by 0.25%
while reducing codesize.

    gcc/
* config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
size.

From-SVN: r276887
gcc/ChangeLog
gcc/config/arm/arm.h