cranelift: in test_compile filetest, log disasm not clif

With the old backends, this would log the lowered+legalized clif, but the log is
useles now with the new backends. Logging the disasm is the new moral
equivalent.
This commit is contained in:
Nick Fitzgerald
2021-10-26 10:19:27 -07:00
parent 06a93d3346
commit 8aa8dfe26a

View File

@@ -44,12 +44,6 @@ impl SubTest for TestCompile {
.compile(isa)
.map_err(|e| crate::pretty_anyhow_error(&comp_ctx.func, e))?;
info!(
"Generated {} bytes of code:\n{}",
total_size,
comp_ctx.func.display()
);
let disasm = comp_ctx
.mach_compile_result
.as_ref()
@@ -57,6 +51,9 @@ impl SubTest for TestCompile {
.disasm
.as_ref()
.unwrap();
info!("Generated {} bytes of code:\n{}", total_size, disasm);
run_filecheck(&disasm, context)
}
}