Don't mark REF_BASE in DCE.
This commit is contained in:
parent
2033d6310b
commit
592cf3ffac
@ -27,7 +27,7 @@ static void dce_marksnap(jit_State *J)
|
|||||||
MSize n, nent = snap->nent;
|
MSize n, nent = snap->nent;
|
||||||
for (n = 0; n < nent; n++) {
|
for (n = 0; n < nent; n++) {
|
||||||
IRRef ref = snap_ref(map[n]);
|
IRRef ref = snap_ref(map[n]);
|
||||||
if (!irref_isk(ref))
|
if (ref >= REF_FIRST)
|
||||||
irt_setmark(IR(ref)->t);
|
irt_setmark(IR(ref)->t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -54,8 +54,8 @@ static void dce_propagate(jit_State *J)
|
|||||||
pchain[IR_NOP] = &ir->prev;
|
pchain[IR_NOP] = &ir->prev;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!irref_isk(ir->op1)) irt_setmark(IR(ir->op1)->t);
|
if (ir->op1 >= REF_FIRST) irt_setmark(IR(ir->op1)->t);
|
||||||
if (!irref_isk(ir->op2)) irt_setmark(IR(ir->op2)->t);
|
if (ir->op2 >= REF_FIRST) irt_setmark(IR(ir->op2)->t);
|
||||||
}
|
}
|
||||||
*pchain[IR_NOP] = 0; /* Terminate NOP chain. */
|
*pchain[IR_NOP] = 0; /* Terminate NOP chain. */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user