diff options
| author | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2024-03-22 16:50:48 +0200 |
|---|---|---|
| committer | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2024-07-11 23:46:36 +0300 |
| commit | df27dfa0eae8a14d69e5006334bb06d84ba050b7 (patch) | |
| tree | 86017c219f5aaa7ae1a93e62b399e6f32a9f7f4d /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | bcf1f6db4594ae6132378b179a30cdb3599a863d (diff) | |
| download | rust-df27dfa0eae8a14d69e5006334bb06d84ba050b7.tar.gz rust-df27dfa0eae8a14d69e5006334bb06d84ba050b7.zip | |
Optimize integer pow by removing exit branch
The branch at the end of the `pow` implementations is redundant with multiplication code already present in the loop. By rotating the exit check, this branch can be largely removed, improving code size and instruction cache coherence.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
