Optimize constant localloc on x64 (#53755)
authorBruce Forstall <brucefo@microsoft.com>
Mon, 7 Jun 2021 01:23:02 +0000 (18:23 -0700)
committerGitHub <noreply@github.com>
Mon, 7 Jun 2021 01:23:02 +0000 (18:23 -0700)
commit838b48b82d6e0b5a2a48d7d7205503270209adab
tree1a02d5f9819f380694a362a1e5f6bfddf5ff7ec6
parent86903ddabfcf229711310a28853f3508ec03cf67
Optimize constant localloc on x64 (#53755)

* Optimize constant localloc on x64

Avoid popping off the outgoing arg space just to push it back later,
for constant size localloc. This typically removes two `sub rsp`
instructions per case, although we don't do the `push 0` "optimization",
so sometimes there are more instructions removed.

* Fix clang build error
src/coreclr/jit/codegenxarch.cpp