]> git.lizzy.rs Git - rust.git/commit
rustc: Set release mode cgus to 16 by default
authorAlex Crichton <alex@alexcrichton.com>
Thu, 21 Dec 2017 15:03:16 +0000 (07:03 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 24 Dec 2017 00:04:15 +0000 (16:04 -0800)
commitb5361d0d41871874926bd489b8dc014a016c3f52
treea770c90135b8d67b3ab73e657c7288f434cf1d33
parentde38f49528b537414385d42a66dda711c8c8a309
rustc: Set release mode cgus to 16 by default

This commit is the next attempt to enable multiple codegen units by default in
release mode, getting some of those sweet, sweet parallelism wins by running
codegen in parallel. Performance should not be lost due to ThinLTO being on by
default as well.

Closes #45320
src/librustc/session/mod.rs
src/librustc_llvm/ffi.rs
src/librustc_trans/back/lto.rs
src/rustllvm/PassWrapper.cpp