Files
rust/compiler
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-12 15:33:37 +02:00
2025-05-27 11:14:47 +00:00
2025-05-27 11:14:45 +00:00
2025-05-27 14:11:14 +03:00
2025-05-27 14:11:14 +03:00
2025-05-22 11:55:22 +10:00
2025-05-12 15:33:37 +02:00
2025-04-15 10:44:28 -04:00
2025-05-27 11:14:47 +00:00
2025-05-27 11:14:45 +00:00
2025-05-12 15:33:37 +02:00
2025-05-24 20:31:37 +02:00
2025-05-27 11:14:45 +00:00
2025-05-27 11:14:45 +00:00
2025-05-24 15:06:53 +08:00
2025-05-27 11:14:47 +00:00