diff options
| author | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2024-07-12 22:54:08 +0300 |
|---|---|---|
| committer | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2024-07-13 00:04:14 +0300 |
| commit | 2f235343529c39bdab47704ec9620d6784eeeb6d (patch) | |
| tree | 95cdadf139e51945dbbe41c826f6b2514168af9c /compiler/rustc_codegen_llvm/src | |
| parent | 1faa1018c7ddd2f505904b0f71255afa5ae1bbe7 (diff) | |
| download | rust-2f235343529c39bdab47704ec9620d6784eeeb6d.tar.gz rust-2f235343529c39bdab47704ec9620d6784eeeb6d.zip | |
Use is_val_statically_known to optimize pow
In the dynamic exponent case, it's preferred to not increase code size, so use solely the loop-based implementation there. This shows about 4% penalty in the variable exponent benchmarks on x86_64.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
