aboutsummaryrefslogtreecommitdiff
path: root/ABOUT-NLS
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2016-12-16 12:59:41 +0000
committerWilco Dijkstra <wilco@gcc.gnu.org>2016-12-16 12:59:41 +0000
commitc67b6f268397b2fc20e72da19e276d2b027ddee4 (patch)
tree15b1b309ca187496afcdc2bbad1df74ad52b4171 /ABOUT-NLS
parentbfb688ae91574454758ab0431a9c7a921d53779f (diff)
downloadgcc-c67b6f268397b2fc20e72da19e276d2b027ddee4.zip
gcc-c67b6f268397b2fc20e72da19e276d2b027ddee4.tar.gz
gcc-c67b6f268397b2fc20e72da19e276d2b027ddee4.tar.bz2
Thumb uses a special register allocation order to increase the use of low registers.
Thumb uses a special register allocation order to increase the use of low registers. Oddly enough, LR appears before R12, which means that LR must be saved and restored even if R12 is available. Swapping R12 and LR means this simple example now uses R12 as a temporary (just like ARM): int f(long long a, long long b) { if (a < b) return 1; return a + b; } gcc/ * config/arm/arm.c (thumb_core_reg_alloc_order): Swap R12 and R14. From-SVN: r243744
Diffstat (limited to 'ABOUT-NLS')
0 files changed, 0 insertions, 0 deletions