Add control-flow arcs to RegionDesc
commit618cedc8cbb7b689d4e0a9cec6f64e189615b26c
authorGuilherme Ottoni <ottoni@fb.com>
Thu, 27 Mar 2014 19:02:42 +0000 (27 12:02 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 27 Mar 2014 21:02:42 +0000 (27 14:02 -0700)
tree149b3876955602e398142ad915e8ae178cd15ec1
parent6ae4618b199280b6dba14e32aca57c834df3f706
Add control-flow arcs to RegionDesc

To support more general regions, it's necessary to specify which
control-flow arcs are within a region.  This diff adds basic support
for storing these arcs in the RegionDesc and changes the various
region selectors to store the arcs in the regions they produce.
Follow-up diffs will change the region translator to actually follow
what arcs are within the region.

Reviewed By: @bertmaher

Differential Revision: D1242572
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