miniblog.
← Back to all posts
Dec 5, 2019 at 04:44
Rust is doing constant propagation on its internal IR before monomorphisation. This can give faster compiles because LLVM is given less code!
Redirect
blog.rust-lang.org/inside-rust/2019/12/02/const-prop-on-by-default.html
Wilfred Hughes
Related Posts
May 8, 2021 at 19:14
1
How to make Rust code faster, including profiling, LLVM whole-crate optimisation, and avoiding costly error checks:
https://likebike.com/posts/How_To_Write_Fast_Rust_Code.html
Wilfred Hughes
Shared words: Rust, LLVM, faster, code Score: 170.6
Jul 2, 2016 at 17:25
Ever wondered how to compile LLVM IR to object code? My new tutorial chapter has just landed!
llvm/docs/tutorial/LangImpl08.rst at f9c643b6e0541e2c4fffc61fff024c33ecb6df5f · llvm-mirror/llvm
Project moved to: https://github.com/llvm/llvm-project - llvm-mirror/llvm
Wilfred Hughes
Shared words: LLVM, IR, compiles, code Score: 138.1
Sep 5, 2021 at 06:33
Applying PGO to rustc (on both LLVM and the Rust-based frontend) can provide a ~10% improvement to compile time!
https://blog.rust-lang.org/inside-rust/2020/11/11/exploring-pgo-for-the-rust-compiler.html
This has been recently merged to Rust's CI:
Redirect
blog.rust-lang.org/inside-rust/2020/11/11/exploring-pgo-for-the-rust-compiler.html
PGO for LLVM builds on x86_64-unknown-linux-gnu in CI by Mark-Simulacrum · Pull Request #88069 · rust-lang/rust
This shows up to 6% less instruction counts with larger - up to 18% - wins on cycles on multiple benchmarks, and up to 19% wins on the -j1 wall times for rustc self-compilation. We can afford to sp...
Wilfred Hughes
Shared words: Rust, LLVM, compiles Score: 120.6