bors
d7c59370ce
Auto merge of #126844 - scottmcm:more-ptr-cast-gvn, r=saethlin
...
Remove more `PtrToPtr` casts in GVN
This addresses two things I noticed in MIR:
1. `NonNull::<T>::eq` does `(a as *mut T) == (b as *mut T)`, but it could just compare the `*const T`s, so this removes `PtrToPtr` casts that are on both sides of a pointer comparison, so long as they're not fat-to-thin casts.
2. `NonNull::<T>::addr` does `transmute::<_, usize>(p as *const ())`, but so long as `T: Thin` that cast doesn't do anything, and thus we can directly transmute the `*const T` instead.
r? mir-opt
2024-06-26 14:22:31 +00:00
..
2024-02-22 16:04:04 +00:00
2024-05-23 21:02:31 -04:00
2024-05-23 21:02:31 -04:00
2024-04-18 18:11:21 -07:00
2024-06-23 13:29:06 -07:00
2024-06-23 13:29:06 -07:00
2024-05-31 00:22:40 +00:00
2024-03-23 23:06:44 -07:00
2024-03-22 20:14:39 -04:00
2024-04-03 08:50:12 +00:00
2024-04-18 09:35:35 -07:00
2024-04-18 09:35:35 -07:00
2024-06-03 14:17:16 +10:00
2024-06-10 00:06:02 -07:00
2024-04-18 09:35:35 -07:00
2024-06-10 00:06:02 -07:00
2024-04-18 09:35:35 -07:00
2024-01-11 09:58:19 +00:00
2024-04-03 08:50:12 +00:00
2024-06-19 21:35:37 -07:00
2024-03-18 10:07:43 -04:00
2024-02-09 21:13:53 +00:00
2024-02-09 21:13:53 +00:00
2024-02-08 19:56:30 -05:00
2024-02-08 19:56:30 -05:00
2024-04-18 09:35:35 -07:00
2024-04-18 09:35:35 -07:00
2024-03-22 20:14:39 -04:00
2024-05-17 20:33:02 -07:00
2024-05-17 20:33:02 -07:00
2024-05-17 20:33:02 -07:00
2024-05-17 20:33:02 -07:00
2024-05-17 20:33:02 -07:00
2024-05-17 20:33:02 -07:00
2024-05-17 20:33:02 -07:00
2024-05-17 20:33:02 -07:00
2024-06-03 14:17:16 +10:00
2024-06-06 00:25:58 -07:00
2024-06-06 00:25:58 -07:00
2024-06-06 00:25:58 -07:00
2024-06-06 00:25:58 -07:00
2024-04-21 11:08:36 -07:00
2024-05-31 00:22:40 +00:00
2024-05-31 00:22:40 +00:00
2024-04-18 09:35:35 -07:00
2024-04-18 09:35:35 -07:00
2024-04-18 09:35:35 -07:00
2024-04-18 09:35:35 -07:00
2024-04-18 09:35:35 -07:00
2024-04-18 09:35:35 -07:00
2024-03-18 10:07:43 -04:00
2024-04-18 09:35:35 -07:00
2024-03-18 10:07:43 -04:00
2024-02-23 18:04:01 -05:00
2024-04-20 19:20:38 +00:00
2024-02-23 18:04:01 -05:00
2024-06-20 22:16:59 -07:00
2024-06-20 22:16:59 -07:00
2024-06-20 22:16:59 -07:00
2024-06-20 22:16:59 -07:00
2024-06-20 22:16:59 -07:00
2024-04-18 09:35:35 -07:00
2024-04-18 09:35:35 -07:00
2024-06-15 17:39:25 -07:00
2024-06-15 17:39:25 -07:00
2024-06-20 22:16:59 -07:00
2024-06-20 22:16:59 -07:00
2024-06-20 22:16:59 -07:00
2024-06-20 22:16:59 -07:00
2024-06-20 22:16:59 -07:00
2024-06-20 22:16:59 -07:00
2024-06-23 01:48:41 -07:00
2024-06-23 01:48:41 -07:00
2024-06-23 01:48:41 -07:00
2024-06-22 20:34:09 -07:00
2024-06-22 20:34:09 -07:00
2024-06-23 01:48:41 -07:00
2024-06-23 01:48:41 -07:00
2024-04-18 09:35:35 -07:00
2024-02-09 21:13:51 +00:00
2024-01-11 09:58:19 +00:00
2024-06-03 14:17:16 +10:00
2024-04-21 11:08:36 -07:00
2024-05-29 09:34:16 -07:00
2024-05-29 09:34:16 -07:00