2 ms·
This has largely been true for Rust, however, there are some optimizations that the compiler does before generating LLVM IR. * Compiler docs: https://rustc-de
by steveklabnik 5y ago
This has largely been true for Rust, however, there are some optimizations that the compiler does before generating LLVM IR.
* Compiler docs: https://rustc-dev-guide.rust-lang.org/mir/optimizations.html https://rustc-dev-guide.rust-lang.org/mir/optimizations.html
* Working Group: https://rust-lang.github.io/compiler-team/working-groups/mir-opt/ https://rust-lang.github.io/compiler-team/working-groups/mir...
* Example of one such optimization, "constant propagation" https://blog.rust-lang.org/inside-rust/2019/12/02/const-prop-on-by-default.html https://blog.rust-lang.org/inside-rust/2019/12/02/const-prop...