Remove trivial nops before jump optimizationsnightly-2019.08.27
commit96fc7ea76dd22a15e67e318c6f930a3ca9aa4fad
authorRick Lavoie <rlavoie@fb.com>
Tue, 27 Aug 2019 01:42:04 +0000 (26 18:42 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 27 Aug 2019 01:44:04 +0000 (26 18:44 -0700)
tree6f1ae899a61f934bc5f0a62fc32d80e1c1c6823b
parent94166a84e7b06eb455217c9098adc2e4fce9df14
Remove trivial nops before jump optimizations

Summary:
Some vasm passes can leave behind trivial nops. These will eventually
get cleaned up before code emission, but they may hang around for
multiple passes. The presence of trivial nops can inhibit some
optimizations that optimizeJmps performs, so clean them up before
running the pass.

Reviewed By: ottoni, mxw

Differential Revision: D17053304

fbshipit-source-id: 2f80cb6ad72a639667ddf95e62585726f9327ff9
hphp/runtime/vm/jit/vasm-jumps.cpp