mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
97c75843c6
@ -44,12 +44,12 @@ static void dce_propagate(jit_State *J)
|
|||||||
IRIns *ir = IR(ins);
|
IRIns *ir = IR(ins);
|
||||||
if (irt_ismarked(ir->t)) {
|
if (irt_ismarked(ir->t)) {
|
||||||
irt_clearmark(ir->t);
|
irt_clearmark(ir->t);
|
||||||
pchain[ir->o] = &ir->prev;
|
|
||||||
} else if (!ir_sideeff(ir)) {
|
} else if (!ir_sideeff(ir)) {
|
||||||
*pchain[ir->o] = ir->prev; /* Reroute original instruction chain. */
|
*pchain[ir->o] = ir->prev; /* Reroute original instruction chain. */
|
||||||
lj_ir_nop(ir);
|
lj_ir_nop(ir);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
pchain[ir->o] = &ir->prev;
|
||||||
if (ir->op1 >= REF_FIRST) irt_setmark(IR(ir->op1)->t);
|
if (ir->op1 >= REF_FIRST) irt_setmark(IR(ir->op1)->t);
|
||||||
if (ir->op2 >= REF_FIRST) irt_setmark(IR(ir->op2)->t);
|
if (ir->op2 >= REF_FIRST) irt_setmark(IR(ir->op2)->t);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user