Questionable change: Remove domtree generation from simple_preopt testing.

This commit is contained in:
Tyler McMullen
2018-12-20 16:38:27 -08:00
committed by Benjamin Bouvier
parent 89a2dd9414
commit 861ef3a2e5

View File

@@ -33,11 +33,10 @@ impl SubTest for TestSimplePreopt {
let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned()); let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned());
let isa = context.isa.expect("preopt needs an ISA"); let isa = context.isa.expect("preopt needs an ISA");
comp_ctx.flowgraph(); comp_ctx.compute_cfg();
comp_ctx comp_ctx
.preopt(isa) .preopt(isa)
.map_err(|e| pretty_error(&comp_ctx.func, context.isa, Into::into(e)))?; .map_err(|e| pretty_error(&comp_ctx.func, context.isa, Into::into(e)))?;
let text = &comp_ctx.func.display(isa).to_string(); let text = &comp_ctx.func.display(isa).to_string();
run_filecheck(&text, context) run_filecheck(&text, context)
} }