rust/library/core
bors 11a44adc6f Auto merge of #75600 - nagisa:improve_align_offset, r=KodrAus
Improve codegen for `align_offset`

In this PR the `align_offset` implementation is changed/improved to produce better code in certain scenarios such as when pointer type is has a stride of 1 or when building for low optimisation levels.

While these changes do not achieve the "ideal" codegen referenced in #75579, it gets significantly closer to it. I’m not actually sure if the codegen can actually be much better with this function returning the offset, rather than the aligned pointer.

See the descriptions for separate commits for further information.
2020-08-19 10:54:44 +00:00
..
benches mv std libs to library/ 2020-07-27 19:51:13 -05:00
src Auto merge of #75600 - nagisa:improve_align_offset, r=KodrAus 2020-08-19 10:54:44 +00:00
tests Add drop check test & MaybeUninit::first_ptr_mut 2020-08-13 03:51:08 +00:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00