Fix assertions in store-elim
commit70733f1dc12dbf0ca387a53bab762190b2b7911b
authormwilliams <mwilliams@fb.com>
Tue, 26 May 2015 16:59:34 +0000 (26 09:59 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Wed, 27 May 2015 16:30:42 +0000 (27 09:30 -0700)
treec80ae30498cefabf685018b595473fef39de18ea
parentc8420a83e032de58554d519f5ac9852e86e3025f
Fix assertions in store-elim

Summary: When resolving cycles of phis, its possible that
one cycle depends on another, and that after resolving the
second one, the first only has a single input.

There's also a case where some of the inputs to a cyclic phi are
in progress when we try to resolve it, so handle that too.

Reviewed By: @jdelong

Differential Revision: D2101344
hphp/runtime/base/runtime-option.h
hphp/runtime/vm/jit/store-elim.cpp