Don't check for failed waithandles until after it wasn't finished
commit348aa00ffa13385620ff66b610605cb9c0b77158
authorJordan DeLong <jdelong@fb.com>
Thu, 4 Jun 2015 00:39:04 +0000 (3 17:39 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Mon, 8 Jun 2015 16:32:28 +0000 (8 09:32 -0700)
tree7398973287f1dfaacf6513761e1fc348b6166f7e
parent2bcb095c10742a0b4e54f903a93f89a3ad5cbd91
Don't check for failed waithandles until after it wasn't finished

Summary: Right now we're generating cmp 1, jmp to side exit, then cmp 0 and do
the expected-to-be-faster path.  Let's wait to compare to 1 until after it
wasn't zero.

Reviewed By: @binliu19, @jano

Differential Revision: D2125762
hphp/runtime/vm/jit/irgen-resumable.cpp