Let codegen decide when to mem::swap
with immediates
Making `libcore` decide this is silly; the backend has so much better information about when it's a good idea. So introduce a new `typed_swap` intrinsic with a fallback body, but replace that implementation for immediates and scalar pairs.
This commit is contained in:
parent
fd27e8745f
commit
7d537106a1
12 changed files with 270 additions and 33 deletions
|
@ -1830,6 +1830,7 @@ symbols! {
|
|||
type_macros,
|
||||
type_name,
|
||||
type_privacy_lints,
|
||||
typed_swap,
|
||||
u128,
|
||||
u128_legacy_const_max,
|
||||
u128_legacy_const_min,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue