Skip to content

Commit

Permalink
cranelift: Don't log CLIF and assembly at debug level (bytecodeallian…
Browse files Browse the repository at this point in the history
…ce#4503)

Too verbose. Only log them at trace level.
  • Loading branch information
fitzgen authored Jul 21, 2022
1 parent ca36ce5 commit b24c561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cranelift/codegen/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl Context {
self.verify_if(isa)?;

let opt_level = isa.flags().opt_level();
log::debug!(
log::trace!(
"Compiling (opt level {:?}):\n{}",
opt_level,
self.func.display()
Expand Down
2 changes: 1 addition & 1 deletion cranelift/codegen/src/isa/x64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl TargetIsa for X64Backend {
let dynamic_stackslot_offsets = emit_result.dynamic_stackslot_offsets;

if let Some(disasm) = emit_result.disasm.as_ref() {
log::debug!("disassembly:\n{}", disasm);
log::trace!("disassembly:\n{}", disasm);
}

Ok(MachCompileResult {
Expand Down

0 comments on commit b24c561

Please sign in to comment.