about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMikhail Zabaluev <mikhail.zabaluev@gmail.com>2024-07-12 22:54:08 +0300
committerMikhail Zabaluev <mikhail.zabaluev@gmail.com>2024-07-13 00:04:14 +0300
commit2f235343529c39bdab47704ec9620d6784eeeb6d (patch)
tree95cdadf139e51945dbbe41c826f6b2514168af9c /compiler/rustc_codegen_llvm/src/errors.rs
parent1faa1018c7ddd2f505904b0f71255afa5ae1bbe7 (diff)
downloadrust-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/errors.rs')
0 files changed, 0 insertions, 0 deletions