Simon Vandel Sillesen
80d5017a6e
Fix miscompile in SimplifyBranchSame
2020-10-04 00:00:00 +00:00
Dylan MacKenzie
6f61e71648
Remember the MirSource
for each Body
2020-10-04 11:01:38 -07:00
Wesley Wiser
f9d7720be7
Disable the SimplifyArmIdentity mir-opt
...
The optimization still has some bugs that need to be worked out
such as #77359 .
We can try re-enabling this again after the known issues are resolved.
2020-10-01 20:29:53 -04:00
Simon Vandel Sillesen
a875c7a1ea
Add assertion for len of vecs
2020-09-19 23:22:54 +02:00
Simon Vandel Sillesen
738ed9b5ec
Fix #76803
...
Check that the variant index matches the target value from the SwitchInt we came from
2020-09-19 15:40:15 +02:00
Wesley Wiser
dbd7226d29
[mir-opt] Disable the ConsideredEqual
logic in SimplifyBranchSame opt
...
The logic is currently broken and we need to disable it to fix a beta
regression (see #76803 )
2020-09-17 09:36:50 -04:00
bors
9b4154193e
Auto merge of #76541 - matthiaskrgr:unstable_sort, r=davidtwco
...
use sort_unstable to sort primitive types
It's not important to retain original order if we have &[1, 1, 2, 3] for example.
clippy::stable_sort_primitive
2020-09-14 21:43:17 +00:00
Matthias Krüger
6bfe132067
take reference to Place directly instead of taking reference to Box<Place>
...
clippy::borrowed_box
2020-09-10 13:08:28 +02:00
Matthias Krüger
b4935e0726
use sort_unstable to sort primitive types
...
It's not important to retain original order if we have &[1, 1, 2, 3] for example.
clippy::stable_sort_primitive
2020-09-10 00:03:58 +02:00
bors
5a6b426e34
Auto merge of #76308 - wesleywiser:enable_simplifyarmidentity_mir_opt, r=oli-obk
...
Enable the SimplifyArmIdentity MIR optimization at mir-opt-level=1
r? `@ghost`
2020-09-08 09:27:23 +00:00
LeSeulArtichaut
3e14b684dd
Change ty.kind to a method
2020-09-04 17:47:51 +02:00
Wesley Wiser
903c0399e7
Enable the SimplifyArmIdentity MIR optimization at mir-opt-level=1
2020-09-03 21:16:30 -04:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00