Simplify genCompareInt
authorMike Danes <onemihaid@hotmail.com>
Sun, 1 Jan 2017 13:58:09 +0000 (15:58 +0200)
committerMike Danes <onemihaid@hotmail.com>
Tue, 17 Jan 2017 18:27:38 +0000 (20:27 +0200)
commitd8bf5ebdb3dc4bb72c005e36a6a24f299764baf5
tree4d34fc605316996f34168ef37bde7258feb7387e
parentb0b432dd4976c1b76b8ef599b6d0d1403b35507d
Simplify genCompareInt

- Remove redundancy around cmp/test selection
- Simplify type selection,  the case when the types are identical is the most common so it should be first
- Add a bunch of asserts to check tha the selected type is correct.

Commit migrated from https://github.com/dotnet/coreclr/commit/68bdb9d0400d7eaaa707dec07fac3fb2090cef22
src/coreclr/src/jit/codegenxarch.cpp
src/coreclr/src/jit/compiler.hpp
src/coreclr/src/jit/lower.cpp