about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2020-08-16 16:59:43 +0300
committerSimonas Kazlauskas <git@kazlauskas.me>2020-08-16 21:31:48 +0300
commite7271da69a7f69d9aef931f30fbb403ffd49436e (patch)
treeed780327bc49fe148c440bbd328fd14f55e39398 /compiler/rustc_errors/src/snippet.rs
parent97ba0c7171c4d2d9b899a2bd8e40a8974c47b86d (diff)
downloadrust-e7271da69a7f69d9aef931f30fbb403ffd49436e.tar.gz
rust-e7271da69a7f69d9aef931f30fbb403ffd49436e.zip
Improve `align_offset` at opt-level <= 1
At opt-level <= 1, the methods such as `wrapping_mul` are not being
inlined, causing significant bloating and slowdowns of the
implementation at these optimisation levels.

With use of these intrinsics, the codegen of this function at
-Copt_level=1 is the same as it is at -Copt_level=3.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions