许杰友 Jieyou Xu (Joe)
10b8ba4ecb
Mark simplify_aggregate_to_copy
mir-opt as unsound
...
Co-authored-by: DianQK <dianqk@dianqk.net>
2024-10-31 13:48:06 +08:00
DianQK
c16c22cc9c
Simplify the canonical clone method to copy
...
The optimized clone method ends up as the following MIR:
```
_2 = copy ((*_1).0: i32);
_3 = copy ((*_1).1: u64);
_4 = copy ((*_1).2: [i8; 3]);
_0 = Foo { a: move _2, b: move _3, c: move _4 };
```
We can transform this to:
```
_0 = copy (*_1);
```
2024-09-14 13:30:35 +08:00
Scott McMurray
99cb0c6bc3
Bless *all* the mir-opt tests
2024-08-18 16:07:33 -07:00
Camille GILLOT
0aedd6e86f
Sandwich MIR optimizations between DSE.
2024-01-11 09:58:19 +00:00
Ben Kimock
0a1fa411ed
Remove comments from mir-opt MIR dumps
2023-06-15 15:19:11 -04:00
Scott McMurray
d69725d5d5
Normalize block and local orders in mir-opt tests
...
Since this only affects `PreCodegen MIR, and it would be nice for that to be resilient to permutations of things that don't affect the actual semantic behaviours.
2023-05-21 17:48:37 -07:00
Camille GILLOT
332b7f51d6
Add mir-opt tests to track MIR quality.
2023-04-23 17:10:53 +00:00