diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-09-16 09:16:04 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-10-25 06:46:47 +0000 |
| commit | 692e5286479e16b3e9b47ab842b543985e1a6ceb (patch) | |
| tree | 16b2fb15eb3e109a8bc339f7ced8f0563125ec65 /tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff | |
| parent | 9389373127705dd4ceb460e6e152cfb9126e6be5 (diff) | |
| download | rust-692e5286479e16b3e9b47ab842b543985e1a6ceb.tar.gz rust-692e5286479e16b3e9b47ab842b543985e1a6ceb.zip | |
Simplify projections in GVN.
Diffstat (limited to 'tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff')
| -rw-r--r-- | tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff b/tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff index 3e731ead859..6fdda5e9988 100644 --- a/tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff +++ b/tests/mir-opt/gvn.dereferences.GVN.panic-unwind.diff @@ -72,7 +72,8 @@ bb2: { StorageDead(_7); StorageDead(_6); - StorageLive(_8); +- StorageLive(_8); ++ nop; _8 = &raw const (*_1); StorageLive(_9); StorageLive(_10); @@ -92,7 +93,8 @@ bb4: { StorageDead(_12); StorageDead(_11); - StorageLive(_13); +- StorageLive(_13); ++ nop; _13 = &raw mut (*_1); StorageLive(_14); StorageLive(_15); @@ -112,7 +114,8 @@ bb6: { StorageDead(_17); StorageDead(_16); - StorageLive(_18); +- StorageLive(_18); ++ nop; _18 = &(*_1); StorageLive(_19); - StorageLive(_20); @@ -188,9 +191,12 @@ StorageDead(_32); StorageDead(_31); _0 = const (); - StorageDead(_18); - StorageDead(_13); - StorageDead(_8); +- StorageDead(_18); +- StorageDead(_13); +- StorageDead(_8); ++ nop; ++ nop; ++ nop; return; } } |
