diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_opt_dce.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lj_opt_dce.c b/src/lj_opt_dce.c index a1df91dd..31e5badd 100644 --- a/src/lj_opt_dce.c +++ b/src/lj_opt_dce.c | |||
@@ -47,10 +47,7 @@ static void dce_propagate(jit_State *J) | |||
47 | pchain[ir->o] = &ir->prev; | 47 | pchain[ir->o] = &ir->prev; |
48 | } else if (!ir_sideeff(ir)) { | 48 | } else if (!ir_sideeff(ir)) { |
49 | *pchain[ir->o] = ir->prev; /* Reroute original instruction chain. */ | 49 | *pchain[ir->o] = ir->prev; /* Reroute original instruction chain. */ |
50 | ir->t.irt = IRT_NIL; | 50 | lj_ir_nop(ir); |
51 | ir->o = IR_NOP; /* Replace instruction with NOP. */ | ||
52 | ir->op1 = ir->op2 = 0; | ||
53 | ir->prev = 0; | ||
54 | continue; | 51 | continue; |
55 | } | 52 | } |
56 | if (ir->op1 >= REF_FIRST) irt_setmark(IR(ir->op1)->t); | 53 | if (ir->op1 >= REF_FIRST) irt_setmark(IR(ir->op1)->t); |