diff options
author | Mike Pall <mike> | 2011-08-11 22:04:38 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-08-11 22:04:38 +0200 |
commit | 05ef03e2d04ccde3c881166268575308315a6ea0 (patch) | |
tree | a3c2088217fadb18663422ba74a67e114a39037c /src/lj_opt_dce.c | |
parent | e8fa76feace720c8348f08fd0e0c9f0656277987 (diff) | |
download | luajit2-05ef03e2d04ccde3c881166268575308315a6ea0.tar.gz |
Don't bother to chain NOPs.
Diffstat (limited to 'src/lj_opt_dce.c')
-rw-r--r-- | src/lj_opt_dce.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lj_opt_dce.c b/src/lj_opt_dce.c index 253fe3d2..0587262d 100644 --- a/src/lj_opt_dce.c +++ b/src/lj_opt_dce.c @@ -47,17 +47,15 @@ static void dce_propagate(jit_State *J) pchain[ir->o] = &ir->prev; } else if (!ir_sideeff(ir)) { *pchain[ir->o] = ir->prev; /* Reroute original instruction chain. */ - *pchain[IR_NOP] = (IRRef1)ins; ir->t.irt = IRT_NIL; ir->o = IR_NOP; /* Replace instruction with NOP. */ ir->op1 = ir->op2 = 0; - pchain[IR_NOP] = &ir->prev; + ir->prev = 0; continue; } if (ir->op1 >= REF_FIRST) irt_setmark(IR(ir->op1)->t); if (ir->op2 >= REF_FIRST) irt_setmark(IR(ir->op2)->t); } - *pchain[IR_NOP] = 0; /* Terminate NOP chain. */ } /* Dead Code Elimination. |