diff options
Diffstat (limited to 'zjit/src/codegen.rs')
| -rw-r--r-- | zjit/src/codegen.rs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/zjit/src/codegen.rs b/zjit/src/codegen.rs index 2ac7ca348a..db9d6a14e3 100644 --- a/zjit/src/codegen.rs +++ b/zjit/src/codegen.rs @@ -184,10 +184,6 @@ fn gen_entry(cb: &mut CodeBlock, iseq: IseqPtr, function_ptr: CodePtr) -> Result asm.frame_teardown(lir::JIT_PRESERVED_REGS); asm.cret(C_RET_OPND); - if get_option!(dump_lir) { - println!("LIR:\nJIT entry for {}:\n{:?}", iseq_name(iseq), asm); - } - let (code_ptr, gc_offsets) = asm.compile(cb)?; assert!(gc_offsets.is_empty()); if get_option!(perf) { @@ -256,6 +252,10 @@ fn gen_function(cb: &mut CodeBlock, iseq: IseqPtr, function: &Function) -> Resul // Compile each basic block let reverse_post_order = function.rpo(); for &block_id in reverse_post_order.iter() { + // Write a label to jump to the basic block + let label = jit.get_label(&mut asm, block_id); + asm.write_label(label); + let block = function.block(block_id); asm_comment!( asm, "{block_id}({}): {}", @@ -263,10 +263,6 @@ fn gen_function(cb: &mut CodeBlock, iseq: IseqPtr, function: &Function) -> Resul iseq_get_location(iseq, block.insn_idx), ); - // Write a label to jump to the basic block - let label = jit.get_label(&mut asm, block_id); - asm.write_label(label); - // Compile all parameters for (idx, &insn_id) in block.params().enumerate() { match function.find(insn_id) { @@ -293,10 +289,6 @@ fn gen_function(cb: &mut CodeBlock, iseq: IseqPtr, function: &Function) -> Resul asm.pad_patch_point(); } - if get_option!(dump_lir) { - println!("LIR:\nfn {}:\n{:?}", iseq_name(iseq), asm); - } - // Generate code if everything can be compiled let result = asm.compile(cb); if let Ok((start_ptr, _)) = result { |
