Add int->long promotion on overflow
This commit is a straightforward implementation that doesn't include any speculation-like optimizations. For operations that can overflow, just relax the type-return-specification to UNKNOWN, and do the overflow checks in the runtime. This means that we no longer emit fast native integer instructions even if we know operands are ints. Will have to add optimizations: - range analysis so that we can know there won't be overflow - deopt-on-overflow so that we can work with unboxed ints even if there's potential overflow
Showing
This diff is collapsed.
test/tests/int_promotion.py
0 → 100644
Please register or sign in to comment