Add a peephole for [N]Same Null
commitb18e25f625fb537a122863eaca134fd89d425a33
authorMark Williams <mwilliams@fb.com>
Wed, 20 Sep 2017 02:18:10 +0000 (19 19:18 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 20 Sep 2017 02:24:06 +0000 (19 19:24 -0700)
tree6e508483875819fff9b6e71067f3fc0962c99422
parent53cd97719200ce7a1c6fdf0be2a6258d1e4ed229
Add a peephole for [N]Same Null

Summary:
With preoptimize turned off in hphpc, nearly all the differences are
IsType Null vs [N]Same Null, so I'm adding a peephole to reduce the
noise and make it easier to find real differences.

At the same time this should make the bytecode strictly smaller, so
its worth doing anyway.

Reviewed By: ricklavoie

Differential Revision: D5864335

fbshipit-source-id: 51a3107e4deac876e65c664f05c22467e7bebfcf
hphp/hhbbc/peephole.cpp