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)
commit68bdb9d0400d7eaaa707dec07fac3fb2090cef22
tree2c250c9f4c9db8ffebcf2210795f6ebbf0d1f0cd
parentb10faae7579c2f22c34ee1fe7c1995ec674828ed
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.
src/jit/codegenxarch.cpp
src/jit/compiler.hpp
src/jit/lower.cpp