Defer local initialization to func entry
commit3c043303321dc3beab831763960ed8728317a527
authorJan Oravec <jan@fb.com>
Thu, 4 Nov 2021 04:09:02 +0000 (3 21:09 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 4 Nov 2021 04:11:08 +0000 (3 21:11 -0700)
tree9c9c7ee610df3c876a4d0a35f4c80f63a77e4d1b
parent7fa37adf3c5d61ac244433257162300eb1bd0a45
Defer local initialization to func entry

Summary:
Do not initialize locals to NullUninit in the prologue. Instead, defer it to
func entry, allowing them to be elided by store-elim.

Reviewed By: ricklavoie

Differential Revision: D29191955

fbshipit-source-id: 675b4e741020087cbb9a0c6e7feca3f0074fb9e7
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/bytecode.h
hphp/runtime/vm/event-hook.cpp
hphp/runtime/vm/jit/irgen-func-prologue.cpp
hphp/runtime/vm/jit/irgen-func-prologue.h
hphp/runtime/vm/jit/irgen-inlining.cpp
hphp/runtime/vm/jit/irlower-call.cpp
hphp/runtime/vm/jit/service-request-handlers.cpp
hphp/runtime/vm/jit/translate-region.cpp
hphp/runtime/vm/runtime.h