Browse Source

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.
pull/3476/head
Nick Fitzgerald 3 years ago
parent
commit
8aa8dfe26a
  1. 9
      cranelift/filetests/src/test_compile.rs

9
cranelift/filetests/src/test_compile.rs

@ -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)
}
}

Loading…
Cancel
Save