bors
9aa232ecc7
Auto merge of #120405 - cjgillot:gvn-pointer, r=oli-obk
...
Fold pointer operations in GVN
This PR proposes 2 combinations of cast operations in MIR GVN:
- a chain of `PtrToPtr` or `MutToConstPointer` casts can be folded together into a single `PtrToPtr` cast;
- we attempt to evaluate more ptr ops when there is no provenance.
In particular, this allows to read from static slices.
This is not yet sufficient to see through slice operations that use `PtrComponents` (because that's a union), but still a step forward.
r? `@ghost`
2024-02-11 04:24:40 +00:00
..
2023-10-19 15:51:52 +00:00
2023-12-24 20:08:57 +00:00
2023-10-19 15:51:52 +00:00
2024-02-09 21:13:51 +00:00
2023-10-19 15:51:52 +00:00
2024-02-08 19:56:30 -05:00
2023-10-19 15:51:52 +00:00
2024-02-09 21:01:56 +00:00
2024-02-09 21:01:56 +00:00
2024-02-09 21:01:56 +00:00
2024-02-09 21:01:56 +00:00
2023-11-01 16:49:18 +00:00
2024-01-11 09:58:19 +00:00
2024-02-09 21:13:51 +00:00
2024-01-11 09:58:19 +00:00
2023-12-24 20:08:57 +00: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-02-08 19:56:30 -05:00
2024-02-08 19:56:30 -05:00
2024-02-08 19:56:30 -05:00
2024-01-11 09:58:19 +00:00
2024-01-11 09:58:19 +00:00
2024-01-11 09:58:19 +00:00
2024-01-11 09:58:19 +00:00
2024-01-07 01:42:57 +00:00
2024-01-07 01:42:57 +00:00
2024-01-07 01:42:57 +00:00
2024-01-07 01:42:57 +00:00
2023-12-24 20:08:57 +00:00
2024-02-09 21:13:51 +00:00
2024-02-09 21:13:51 +00:00
2024-01-11 09:58:19 +00:00
2024-01-11 09:58:19 +00:00
2023-12-24 20:08:57 +00:00
2023-12-24 20:08:57 +00:00
2023-10-19 15:51:52 +00:00
2023-12-24 20:08:57 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2024-01-07 13:54:05 +00:00
2023-12-24 20:08:57 +00:00
2023-10-19 15:51:52 +00:00
2024-01-16 11:34:16 +00:00
2024-01-16 11:34:16 +00:00
2024-02-09 21:01:56 +00:00
2024-02-09 21:01:56 +00:00
2023-10-08 16:05:26 +00:00
2023-10-08 16:05:26 +00:00
2024-02-09 21:01:56 +00:00
2024-02-09 21:01:56 +00:00
2024-02-09 21:01:56 +00:00
2024-02-09 21:01:56 +00:00
2024-02-09 21:13:51 +00:00
2024-02-09 21:13:51 +00:00
2024-02-09 21:01:56 +00:00
2024-02-09 21:01:56 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2024-02-09 21:13:51 +00:00
2024-01-11 09:58:19 +00:00
2023-10-19 15:51:52 +00:00