LibJS: Reduce Mov instructions by using preferred destinations

This commit is contained in:
Lucien Fiorini 2025-03-28 01:30:35 +01:00 committed by Andreas Kling
parent 5707076b9e
commit f72d87931f
Notes: github-actions[bot] 2025-03-28 11:22:08 +00:00

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