mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 18:08:20 -07:00
NDR: For barrier micro-ops, lazily mark written registers instead of iterating
Also remove some dead code in there. 4-5% more improvement observed.
This commit is contained in:
@@ -38,7 +38,7 @@ codegen_ir_set_unroll(int count, int start, int first_instruction)
|
||||
static void
|
||||
duplicate_uop(ir_data_t *ir, uop_t *uop, int offset)
|
||||
{
|
||||
uop_t *new_uop = uop_alloc(ir, uop->type);
|
||||
uop_t *new_uop = uop_alloc_unroll(ir, uop->type);
|
||||
|
||||
if (!ir_reg_is_invalid(uop->src_reg_a))
|
||||
new_uop->src_reg_a = codegen_reg_read(uop->src_reg_a.reg);
|
||||
|
||||
Reference in New Issue
Block a user