x86-64: special case alloc_tramp for the commonest target register
commit5a36bb12fc6aea1dbbb8bdeb98135869f5afd702
authorDouglas Katzman <dougk@google.com>
Wed, 9 Aug 2017 06:38:55 +0000 (9 02:38 -0400)
committerDouglas Katzman <dougk@google.com>
Wed, 9 Aug 2017 06:44:43 +0000 (9 02:44 -0400)
treefa7c1819f29bf7963961bc1e66a927e725239815
parent996ec12814cefe1b9bb646ec3f2bc2c88e327322
x86-64: special case alloc_tramp for the commonest target register

It's almost always R11, so rather than push the answer and pop R11,
just move it from RAX to R11, which avoids 1 instruction.
src/compiler/x86-64/macros.lisp
src/runtime/x86-64-assem.S