Implement BitNot with BitXor
commit6df7a29aa5a1639ba690b46aab855289a42dfb5d
authorEdwin Smith <smith@fb.com>
Wed, 5 Mar 2014 19:07:40 +0000 (5 11:07 -0800)
committerSara Golemon <sgolemon@fb.com>
Fri, 7 Mar 2014 18:09:38 +0000 (7 10:09 -0800)
treef319e1dfd62cb31e9456d07ee302e62ee21c434c
parent90838d2886b80e24dc80c6c51bf74d778b31a389
Implement BitNot with BitXor

This makes HHIR slightly more canonical and eliminates one more
opcode we have to maintain/port.

Reviewed By: @alexmalyshev

Differential Revision: D1204092
hphp/runtime/vm/jit/code-gen-arm.cpp
hphp/runtime/vm/jit/code-gen-x64.cpp
hphp/runtime/vm/jit/hhbc-translator.cpp
hphp/runtime/vm/jit/ir.h
hphp/runtime/vm/jit/simplifier.cpp