diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2020-08-16 16:59:43 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2020-08-16 21:31:48 +0300 |
| commit | e7271da69a7f69d9aef931f30fbb403ffd49436e (patch) | |
| tree | ed780327bc49fe148c440bbd328fd14f55e39398 /compiler/rustc_errors/src/snippet.rs | |
| parent | 97ba0c7171c4d2d9b899a2bd8e40a8974c47b86d (diff) | |
| download | rust-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
