Trevor Gross
ee4efa1f86
Rollup merge of #141252 - dianqk:gvn-repeat-index, r=saethlin
...
gvn: bail out unavoidable non-ssa locals in repeat
Fixes #141251 .
We cannot transform `*elem` to `array[idx1]` in the following code, as `idx1` has already been modified.
```rust
mir! {
let array;
let elem;
{
array = [*val; 5];
elem = &array[idx1];
idx1 = idx2;
RET = *elem;
Return()
}
}
```
Perhaps I could transform it to `array[0]`, but I prefer the conservative approach.
r? mir-opt
2025-05-27 20:28:31 -04:00
..
2025-05-05 11:50:43 +00:00
2025-05-27 23:33:29 +10:00
2025-04-28 16:23:13 +07:00
2025-05-23 03:40:27 +07:00
2025-01-23 17:40:41 +00:00
2025-03-12 22:33:54 +00:00
2025-04-28 16:23:13 +07:00
2025-02-08 22:12:13 +00:00
2025-05-08 16:20:57 +00:00
2025-04-25 12:16:40 +00:00
2025-04-22 11:02:37 +00:00
2025-04-02 07:30:11 +00:00
2025-05-09 23:16:55 +02:00
2025-04-25 12:16:40 +00:00
2024-11-18 10:38:56 +01:00
2025-04-28 12:36:47 +00:00
2025-04-15 08:07:15 +10:00
2025-05-22 17:08:32 +07:00
2025-04-13 22:01:54 +00:00
2025-01-23 17:40:41 +00:00
2025-05-07 18:19:04 +02:00
2025-03-12 22:39:43 -07:00
2025-05-09 23:16:55 +02:00
2025-01-23 17:40:41 +00:00
2025-04-24 11:36:07 +10:00
2025-01-23 17:40:41 +00:00
2025-03-04 12:26:01 +01:00
2025-02-14 16:15:57 +11:00
2025-04-24 11:36:07 +10:00
2025-01-23 17:40:41 +00:00
2025-04-19 19:30:46 +00:00
2025-02-14 16:15:57 +11:00
2025-05-23 10:43:21 +00:00
2025-04-28 16:23:13 +07:00
2025-04-24 13:14:36 +07:00
2025-03-04 18:21:56 -08:00
2025-02-21 07:12:13 +11:00
2025-05-19 21:35:49 +08:00
2025-01-23 17:40:41 +00:00
2025-05-09 23:16:55 +02:00
2025-04-13 17:37:54 -04:00
2025-05-03 10:43:38 +00:00
2025-04-28 16:23:13 +07:00
2025-05-26 00:15:16 +02:00
2025-05-12 15:33:37 +02:00
2025-05-07 18:19:04 +02:00
2025-01-11 11:34:01 +00:00
2025-02-03 12:53:57 -08:00
2025-01-23 17:40:41 +00:00
2025-04-20 20:56:41 +08:00
2025-02-22 00:13:19 +00:00
2025-04-12 11:53:07 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-04-29 21:41:15 +07:00
2025-04-17 12:15:04 +02:00
2025-04-29 14:58:21 +00:00
2025-04-14 16:17:06 +00:00
2025-01-23 17:40:41 +00:00
2025-04-29 14:58:21 +00:00
2025-04-08 21:05:20 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-04-08 21:05:20 +00:00
2025-04-28 16:23:13 +07:00
2025-04-29 14:03:06 +00:00
2025-02-22 00:13:19 +00:00
2025-02-22 00:13:19 +00:00
2025-04-29 14:58:21 +00:00
2025-02-18 13:43:43 +11:00
2025-02-22 22:24:52 +00:00
2025-04-02 19:27:17 +08:00
2025-01-23 17:40:41 +00:00
2025-02-14 16:15:57 +11:00
2025-02-14 16:15:57 +11:00
2025-05-19 13:24:54 +10:00