about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_example.rs
diff options
context:
space:
mode:
authordianqk <dianqk@dianqk.net>2025-05-19 21:07:34 +0800
committerdianqk <dianqk@dianqk.net>2025-05-19 21:35:49 +0800
commitbe5d6c5425e8dfdf1662225fb23d6deb0e124dd4 (patch)
treeefe8f23e53d92fe332ddbed5be9602c46d459796 /compiler/rustc_codegen_gcc/example/alloc_example.rs
parent7068c8bd81c73db264c544f75a43158555567848 (diff)
downloadrust-be5d6c5425e8dfdf1662225fb23d6deb0e124dd4.tar.gz
rust-be5d6c5425e8dfdf1662225fb23d6deb0e124dd4.zip
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()
        }
    }
```
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions