about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorChai T. Rex <ChaiTRex@users.noreply.github.com>2025-08-23 17:53:27 -0400
committerChai T. Rex <ChaiTRex@users.noreply.github.com>2025-08-29 21:51:10 -0400
commit2c21b884a59814836cbd9386492d9ba71039fc75 (patch)
tree3153d65368c3d459dbea467e5f7b308ebe711c5f /compiler/rustc_codegen_llvm/src
parent6ba0ce40941eee1ca02e9ba49c791ada5158747a (diff)
downloadrust-2c21b884a59814836cbd9386492d9ba71039fc75.tar.gz
rust-2c21b884a59814836cbd9386492d9ba71039fc75.zip
Optimize `.ilog({2,10})` to `.ilog{2,10}()`
Inform compiler of optimizations when the base is known at compile time
and there's a cheaper method available:

* `{integer}.checked_ilog(2)` -> `{integer}.checked_ilog2()`
* `{integer}.checked_ilog(10)` -> `{integer}.checked_ilog10()`
* `{integer}.ilog(2)` -> `{integer}.ilog2()`
* `{integer}.ilog(10)` -> `{integer}.ilog10()`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions