1
Fork 0

Perform some optimizations

This commit is contained in:
bjorn3 2018-08-31 19:50:26 +02:00
parent 0cfe31403a
commit 42066522fb
4 changed files with 35 additions and 32 deletions

View file

@ -361,6 +361,7 @@ fn codegen_mono_items<'a, 'tcx: 'a>(
let mut log = ::std::fs::File::create("target/out/log.txt").unwrap();
let before = ::std::time::Instant::now();
println!("[codegen mono items] start");
for mono_item in mono_items {
let res = ::std::panic::catch_unwind(::std::panic::AssertUnwindSafe(|| {
@ -383,7 +384,7 @@ fn codegen_mono_items<'a, 'tcx: 'a>(
ccx.finalize(tcx, module);
let after = ::std::time::Instant::now();
println!("time: {:?}", after - before);
println!("[codegen mono items] end time: {:?}", after - before);
}
fn save_incremental<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {