Skip to content

Commit cecae80

Browse files
committed
remove unnecessary printlns for benchmarks
1 parent 3ec813e commit cecae80

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/interpreter.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,20 +1422,26 @@ pub fn interpret_start_points<'a, 'tcx>(
14221422
if attr.check_name("miri_run") {
14231423
let item = tcx.map.expect_item(id);
14241424

1425-
println!("Interpreting: {}", item.name);
1425+
if TRACE_EXECUTION {
1426+
println!("Interpreting: {}", item.name);
1427+
}
14261428

14271429
let mut gecx = GlobalEvalContext::new(tcx, mir_map);
14281430
let mut fecx = FnEvalContext::new(&mut gecx);
14291431
match fecx.call_nested(mir) {
1430-
Ok(Some(return_ptr)) => fecx.memory.dump(return_ptr.alloc_id),
1432+
Ok(Some(return_ptr)) => if TRACE_EXECUTION {
1433+
fecx.memory.dump(return_ptr.alloc_id);
1434+
},
14311435
Ok(None) => println!("(diverging function returned)"),
14321436
Err(_e) => {
14331437
// TODO(solson): Detect whether the error was already reported or not.
14341438
// tcx.sess.err(&e.to_string());
14351439
}
14361440
}
14371441

1438-
println!("");
1442+
if TRACE_EXECUTION {
1443+
println!("");
1444+
}
14391445
}
14401446
}
14411447
}

0 commit comments

Comments
 (0)