Erik Eckstein
78bfc9f955
RedundantLoadElimination: support replacing a redundant copy_addr with a store
...
For example:
```
%0 = load %1
copy_addr %1 to %2
```
->
```
%0 = load %1
store %0 to %2
```
This is important for MandatoryRedundantLoadElimination to be able to create statically initialized globals in the mandatory pipeline.
For example:
```
public struct MyStruct {
public static let r: Range<Int> = 1 ..< 3
}
```
gets a statically initialized global, even at Onone, with this improvement.
rdar://149356742
2025-04-28 08:01:49 +02:00
..
2022-07-20 15:05:16 -07:00
2024-11-21 18:49:52 +01:00
2022-07-20 15:05:16 -07:00
2022-12-04 08:20:34 +03:00
2022-09-19 02:36:02 +03:00
2022-09-19 02:36:02 +03:00
2024-05-23 15:53:02 -07:00
2022-09-19 02:36:02 +03:00
2022-12-04 08:20:34 +03:00
2024-10-19 19:39:18 -07:00
2022-12-04 08:20:34 +03:00
2024-12-02 15:02:09 -08:00
2022-09-19 02:36:02 +03:00
2022-12-04 08:20:34 +03:00
2023-08-03 09:33:11 -07:00
2023-04-18 14:38:25 +02:00
2024-05-23 15:53:02 -07:00
2022-09-19 02:36:02 +03:00
2022-09-19 02:36:02 +03:00
2024-05-28 12:59:26 -07:00
2022-09-19 02:36:02 +03:00
2022-09-19 02:36:02 +03:00
2022-09-19 02:36:02 +03:00
2022-09-19 02:36:02 +03:00
2024-07-23 11:06:12 -07:00
2024-01-10 16:15:57 +01:00
2022-09-19 02:36:02 +03:00
2022-09-19 02:36:02 +03:00
2025-04-28 08:01:49 +02:00
2023-03-08 10:10:22 -08:00
2023-04-26 23:11:15 -07:00
2023-09-12 14:22:41 -07:00
2023-10-04 14:48:03 -07:00
2024-02-03 08:33:36 -08:00
2024-07-04 20:53:59 -07:00
2024-07-26 17:04:26 -07:00
2025-02-05 20:57:52 -08:00
2020-12-23 07:19:19 -05:00
2022-05-20 19:51:23 -07:00
2021-04-01 16:14:31 -07:00
2023-01-20 19:40:24 +01:00
2021-11-05 10:28:33 -07:00
2025-02-17 14:43:50 -08:00
2020-12-23 07:19:19 -05:00
2020-12-23 07:19:19 -05:00
2021-02-07 14:09:46 -08:00
2021-02-07 14:09:46 -08:00
2021-09-23 13:24:40 -04:00
2022-12-04 08:20:34 +03:00
2021-02-07 14:09:46 -08:00