Skip to content

Commit 036e0d7

Browse files
committed
librustc_trans: disable profiling pre-inlining.
It destroys performance actually. Signed-off-by: Emilio Cobos Álvarez <[email protected]>
1 parent a95c8c6 commit 036e0d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_trans/llvm_util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ unsafe fn configure_llvm(sess: &Session) {
6161
add("rustc"); // fake program name
6262
if sess.time_llvm_passes() { add("-time-passes"); }
6363
if sess.print_llvm_passes() { add("-debug-pass=Structure"); }
64+
add("-disable-preinline");
6465

6566
for arg in &sess.opts.cg.llvm_args {
6667
add(&(*arg));

0 commit comments

Comments
 (0)