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)
commit4c18313333034af02d644732b8353bb0c7731848
tree930e7b6e0a4bd81ec92481a2afe1afbb28dc9a6f
parent32274b7d75117e6c02314069d213f6d2721d7bdc
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.

Commit migrated from https://github.com/dotnet/coreclr/commit/f6f991bac4ca614701627a4bd126d79b28d05514
src/coreclr/src/jit/emitxarch.cpp