diff options
author | Mike Pall <mike> | 2020-10-12 15:40:28 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2020-10-12 15:40:28 +0200 |
commit | de6b1a11dd1a3349179084578c5d533be1c30234 (patch) | |
tree | f82129c93cef707f410be068c782dcedee98419d /src/lj_opt_dce.c | |
parent | e8ec6fe996cf48ef23755581dafe372eb71ad75c (diff) | |
download | luajit-de6b1a11dd1a3349179084578c5d533be1c30234.tar.gz luajit-de6b1a11dd1a3349179084578c5d533be1c30234.tar.bz2 luajit-de6b1a11dd1a3349179084578c5d533be1c30234.zip |
Ensure full init of IR_NOP instructions.
Diffstat (limited to 'src/lj_opt_dce.c')
-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); |