Reorder blocks in hhas to make sense
commit0f76237b718eda80d506b953773f8dc88266650c
authorJoseph Griego <jgriego@fb.com>
Thu, 13 Jul 2017 17:01:12 +0000 (13 10:01 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 13 Jul 2017 19:20:08 +0000 (13 12:20 -0700)
treee605fe47ccf3c1fbf78051029fdb582f58f43c48
parentf41b1126c439a53afa9c3232e3d87d6b0182a4e8
Reorder blocks in hhas to make sense

Summary:
I used to just dump every block in the order they were allocatd by the
compiler. This adds a simple step to put the blocks in a topological ordering
(after ignoring backedges.) This isn't perfect but it's a lot better and makes
the resulting output at least somewhat more human-readable

Reviewed By: swtaarrs

Differential Revision: D5356304

fbshipit-source-id: efb803628192cec420fe58e01b8041daf4a8aea0
hphp/php7/bytecode.h
hphp/php7/compiler.cpp
hphp/php7/compiler.h
hphp/php7/hhas.cpp
hphp/php7/unit.cpp
hphp/php7/unit.h