Add a runtime option to limit the maximum number of bytecode instructions in a region
commitff66f2ea5a5703f76759eeafbbd5b5a6574696a8
authorGuilherme Ottoni <ottoni@fb.com>
Tue, 28 Oct 2014 15:36:41 +0000 (28 08:36 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Tue, 28 Oct 2014 16:00:27 +0000 (28 09:00 -0700)
treecfe55e837fa374ccff454ac65a6db6a648c45220
parente4d23062189ac2140eaaf34fdc2f6878a11aad1a
Add a runtime option to limit the maximum number of bytecode instructions in a region

Summary: And enforce it in the region selectors.  The goal of this is to
prevent forming very large regions that are too expensive to JIT.

Reviewed By: @markw65

Differential Revision: D1640217
hphp/runtime/base/runtime-option.h
hphp/runtime/vm/jit/region-hot-trace.cpp
hphp/runtime/vm/jit/region-selection.cpp
hphp/runtime/vm/jit/region-selection.h
hphp/runtime/vm/jit/region-tracelet.cpp
hphp/runtime/vm/jit/region-whole-cfg.cpp