LibJS: Reduce Mov instructions by using preferred destinations

This commit is contained in:
Lucien Fiorini 2025-03-28 01:30:35 +01:00
parent 23ab1db5cf
commit 658510226c

View file

@ -334,7 +334,7 @@ Bytecode::CodeGenerationErrorOr<Optional<ScopedOperand>> LogicalExpression::gene
generator.switch_to_basic_block(rhs_block);
auto rhs = TRY(m_rhs->generate_bytecode(generator)).value();
auto rhs = TRY(m_rhs->generate_bytecode(generator, dst)).value();
generator.emit_mov(dst, rhs);
generator.emit<Bytecode::Op::Jump>(Bytecode::Label { end_block });