Andrew Kelley 1fc24e8d80 Sema: enhance div instruction analysis
Concrete improvements:
 * Added safety for integer overflow (-MAX_INT/-1)
 * Omit division by zero safety check when RHS is comptime known to
   be non-zero.
 * Avoid emitting `_optimized` variants of AIR instructions for integers
   (this suffix is intended to be used for floats only).

Subjective changes: I extracted the div logic out from analyzeArithmetic
in order to reduce the amount of branches - not for performance reasons
but for code clarity. It is more lines of code however, and some logic
is duplicated.
2022-07-29 02:35:06 -07:00
..
2022-07-23 15:40:12 +03:00
2022-04-27 16:45:23 -07:00
2022-05-13 16:43:59 -04:00
2022-07-23 15:40:12 +03:00
2022-07-28 15:20:01 -07:00
2022-07-23 15:40:12 +03:00
2022-01-07 00:06:06 -05:00
2022-07-29 10:12:36 +03:00