Do not re-simplify SSA locals.

This commit is contained in:
Camille GILLOT 2023-10-31 19:08:36 +00:00
parent e26c9a42c6
commit 4ee01faaf0
5 changed files with 29 additions and 26 deletions

View file

@ -33,10 +33,6 @@
+ }
+
+ ALLOC1 (size: 2, align: 1) {
+ 01 02 │ ..
+ }
+
+ ALLOC2 (size: 2, align: 1) {
+ 01 02 │ ..
}

View file

@ -33,10 +33,6 @@
+ }
+
+ ALLOC1 (size: 2, align: 1) {
+ 01 02 │ ..
+ }
+
+ ALLOC2 (size: 2, align: 1) {
+ 01 02 │ ..
}

View file

@ -15,10 +15,11 @@
StorageLive(_1);
- StorageLive(_2);
- _2 = const 1_usize as &mut Never (Transmute);
- _1 = &mut (*_2);
- StorageDead(_2);
+ nop;
+ _2 = const {0x1 as &mut Never};
_1 = &mut (*_2);
- StorageDead(_2);
+ _1 = const {0x1 as &mut Never};
+ nop;
unreachable;
}

View file

@ -15,10 +15,11 @@
StorageLive(_1);
- StorageLive(_2);
- _2 = const 1_usize as &mut Never (Transmute);
- _1 = &mut (*_2);
- StorageDead(_2);
+ nop;
+ _2 = const {0x1 as &mut Never};
_1 = &mut (*_2);
- StorageDead(_2);
+ _1 = const {0x1 as &mut Never};
+ nop;
unreachable;
}