Files
rust/library/core/src
bors e794b0f855 Auto merge of #125720 - folkertdev:optimize_for_size-ptr-rotate, r=Amanieu
make `ptr::rotate` smaller when using `optimize_for_size`

code to reproduce https://github.com/folkertdev/optimize_for_size-slice-rotate

In the example the size of `.text` goes down from 1624 to 276 bytes.

```
> cargo size --release --features "left-std"  -- -A

slice-rotate  :
section              size        addr
.vector_table        1024         0x0
.text                1624       0x400
.rodata                 0       0xa58
.data                   0  0x20000000
.gnu.sgstubs            0       0xa60
.bss                    0  0x20000000
.uninit                 0  0x20000000
.debug_loc            591         0x0
.debug_abbrev        1452         0x0
.debug_info         10634         0x0
.debug_aranges        480         0x0
.debug_ranges        1504         0x0
.debug_str          11716         0x0
.comment               72         0x0
.ARM.attributes        56         0x0
.debug_frame         1036         0x0
.debug_line          5837         0x0
Total               36026

> cargo size --release --features "left-size"  -- -A

slice-rotate  :
section             size        addr
.vector_table       1024         0x0
.text                276       0x400
.rodata                0       0x514
.data                  0  0x20000000
.gnu.sgstubs           0       0x520
.bss                   0  0x20000000
.uninit                0  0x20000000
.debug_loc           347         0x0
.debug_abbrev        965         0x0
.debug_info         4216         0x0
.debug_aranges       168         0x0
.debug_ranges        216         0x0
.debug_str          3615         0x0
.comment              72         0x0
.ARM.attributes       56         0x0
.debug_frame         232         0x0
.debug_line          723         0x0
Total              11910
```

tracking issue: https://github.com/rust-lang/rust/issues/125612
2024-06-17 01:45:22 +00:00
..
2024-06-11 01:50:43 -07:00
2024-02-13 12:04:44 +01:00
2024-06-11 16:52:02 +02:00
2024-05-09 17:04:30 +02:00
2024-05-04 22:56:35 +01:00
2024-05-20 22:46:13 +09:00
2024-05-27 11:08:21 +02:00
2024-06-11 16:52:04 +02:00
2024-03-29 17:10:17 +01:00
2024-06-11 16:52:04 +02:00
2024-06-11 16:52:02 +02:00
2024-06-12 13:23:21 +02:00
2024-06-11 16:52:02 +02:00
2024-05-21 19:05:37 -07:00
2024-03-29 10:10:52 -07:00
2024-03-07 07:49:22 +01:00
2024-05-09 17:04:30 +02:00
2024-06-11 16:52:02 +02:00
2024-05-23 18:45:03 +02:00
2024-05-01 22:19:11 -04:00
2024-06-11 15:47:00 +02:00
2024-05-09 17:04:30 +02:00
2024-06-13 10:09:59 +02:00
2024-04-08 11:57:17 +00:00
2024-06-07 12:18:43 -07:00
2024-06-11 16:52:02 +02:00