about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-19 10:54:44 +0000
committerbors <bors@rust-lang.org>2020-08-19 10:54:44 +0000
commit11a44adc6fadd84fc11ed986179504e883b528d1 (patch)
tree0362d9765046249f3def07345190cd2750bfdf39 /compiler/rustc_codegen_llvm/src
parent5b04bbfcbb79ed7325ea2b580458a80d95da6bbb (diff)
parent5d22b18bf28a54586008e9d8d4bfd72012c00e2e (diff)
downloadrust-11a44adc6fadd84fc11ed986179504e883b528d1.tar.gz
rust-11a44adc6fadd84fc11ed986179504e883b528d1.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions