Fix bugs in RemoveUnreachableBlocks
commitb1af4c5b15d9d7636d5b3374964c96cd98dcaa99
authorMark Williams <mwilliams@fb.com>
Thu, 6 Apr 2017 02:03:21 +0000 (5 19:03 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 6 Apr 2017 02:09:09 +0000 (5 19:09 -0700)
treefa1d775be449049510ce8c1832f955b6008408d4
parent4f300a259aeff79abf1eefd0091490bfbc6dc393
Fix bugs in RemoveUnreachableBlocks

Summary:
I'd forgotten that foreachTakenEdge only does the explicit branch
targets, and doesn't include the fallthrough.

Reviewed By: paulbiss

Differential Revision: D4838626

fbshipit-source-id: 22b477189987dc8f99a301152eac1620336f82f2
hphp/hhbbc/cfg-opts.cpp