Simplify emitter's RegEncoding
authorMike Danes <onemihaid@hotmail.com>
Sat, 22 Apr 2017 13:41:56 +0000 (16:41 +0300)
committerMike Danes <onemihaid@hotmail.com>
Sat, 22 Apr 2017 13:41:56 +0000 (16:41 +0300)
commitf6f991bac4ca614701627a4bd126d79b28d05514
tree0acb5f9eae7923e1baa2c1d40a296dbc46354409
parent35dc2a5f4323049f3035f8d14e2620ae44866239
Simplify emitter's RegEncoding

VC++ does't recognize that `(c ? x - 16 : x) & 7` is just `x & 7` and we end up with 5 instructions instead of 1.
src/jit/emitxarch.cpp