Andrew Kelley
6e78c007df
Sema: improved AIR when one operand of bool cmp is known
...
When doing `x == true` or `x == false` it is now lowered as either a
no-op or a not, respectively, rather than a cmp instruction.
This commit also extracts a zirCmpEq function out from zirCmp, reducing
the amount of branching (on is_equality_cmp) in both functions.
2021-07-30 17:40:30 -07:00
..
2021-07-29 19:30:37 -07:00
2021-07-29 19:30:37 -07:00
2021-07-28 18:17:11 -04:00
2021-07-22 08:09:46 -07:00
2021-07-30 16:17:59 -07:00
2021-07-27 17:08:37 -07:00
2021-07-26 20:41:00 -04:00
2021-06-29 14:25:04 -07:00
2021-06-11 15:57:52 -07:00
2020-09-21 18:38:55 -07:00
2021-07-28 08:06:22 -07:00
2021-07-30 17:53:33 -04:00
2021-07-29 19:30:37 -07:00
2021-06-14 00:16:40 +03:00
2021-06-21 17:03:03 -07:00
2020-12-07 17:27:09 -07:00
2021-07-23 22:42:31 -07:00
2021-03-25 22:05:21 -04:00
2021-06-09 17:26:58 -04:00
2021-07-23 22:42:31 -07:00
2021-07-23 22:42:31 -07:00
2021-07-23 22:42:31 -07:00
2021-07-23 17:06:19 +02:00
2021-07-29 15:59:51 -07:00
2021-07-27 21:30:53 -04:00
2021-06-21 17:03:03 -07:00
2021-07-30 16:17:59 -07:00
2021-07-23 22:42:31 -07:00
2021-06-03 17:02:16 -05:00
2021-07-29 15:59:51 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-07-30 16:17:59 -07:00
2021-07-20 12:19:16 -07:00
2021-07-30 17:40:30 -07:00
2021-07-23 22:42:31 -07:00
2021-07-08 14:10:49 -07:00
2021-07-23 22:42:31 -07:00
2021-06-30 21:49:00 -05:00
2021-06-21 17:03:03 -07:00
2021-07-28 17:46:02 -04:00
2021-07-30 16:17:59 -07:00
2020-09-21 18:38:55 -07:00
2021-07-30 16:17:59 -07:00
2021-01-14 20:41:37 -07:00
2021-07-11 00:06:47 +02:00
2018-09-18 00:13:17 -04:00
2018-10-27 11:35:01 -04:00
2020-09-21 21:14:01 -07:00
2021-06-14 00:16:40 +03:00
2021-02-25 19:41:30 -08:00
2020-12-16 12:18:14 +01:00
2021-07-10 15:58:38 -04:00
2021-07-28 08:06:22 -07:00
2021-07-28 08:06:22 -07:00
2021-07-10 15:58:38 -04:00
2021-07-26 20:41:00 -04:00
2021-07-26 20:41:00 -04:00
2021-07-27 17:08:37 -07:00