diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-08-30 20:29:07 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-30 20:29:07 +1000 |
| commit | dfbba07012ac533ad4dd1f770347cfd547b7eb8c (patch) | |
| tree | 3f1a36dccf8f61ffc049d6941dc2afa2a6fb3910 /compiler/rustc_codegen_llvm/src | |
| parent | b5c19e839f177592e39691f779b0f8b057471a1a (diff) | |
| parent | 2c21b884a59814836cbd9386492d9ba71039fc75 (diff) | |
| download | rust-dfbba07012ac533ad4dd1f770347cfd547b7eb8c.tar.gz rust-dfbba07012ac533ad4dd1f770347cfd547b7eb8c.zip | |
Rollup merge of #145776 - ChaiTRex:ilog_specialization, r=joboet
Optimize `.ilog({2,10})` to `.ilog{2,10}()`
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
