Commit Graph

2 Commits

Author SHA1 Message Date
Camille GILLOT 3d96e54656 Use a VnIndex in Address projection. 2025-10-04 16:36:52 +00:00
dianqk be5d6c5425 gvn: bail out unavoidable non-ssa locals in repeat
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()
        }
    }
```
2025-05-19 21:35:49 +08:00