diff options
author | Mike Pall <mike> | 2023-09-22 21:07:20 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-09-22 21:07:20 +0200 |
commit | 97c75843c642d304a81f20576a8e3dda9097e8b8 (patch) | |
tree | 496db7bccbd4a9bb6de3285f7a801369784fbb53 /src | |
parent | d1a2fef8a8f53b0055ee041f7f63d83a27444ffa (diff) | |
parent | f72c19e482b6f918b7cf42b0436e2b117d160a29 (diff) | |
download | luajit-97c75843c642d304a81f20576a8e3dda9097e8b8.tar.gz luajit-97c75843c642d304a81f20576a8e3dda9097e8b8.tar.bz2 luajit-97c75843c642d304a81f20576a8e3dda9097e8b8.zip |
Merge branch 'master' into v2.1
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_opt_dce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_opt_dce.c b/src/lj_opt_dce.c index c6c3e1bc..e6fcc552 100644 --- a/src/lj_opt_dce.c +++ b/src/lj_opt_dce.c | |||
@@ -44,12 +44,12 @@ static void dce_propagate(jit_State *J) | |||
44 | IRIns *ir = IR(ins); | 44 | IRIns *ir = IR(ins); |
45 | if (irt_ismarked(ir->t)) { | 45 | if (irt_ismarked(ir->t)) { |
46 | irt_clearmark(ir->t); | 46 | irt_clearmark(ir->t); |
47 | pchain[ir->o] = &ir->prev; | ||
48 | } else if (!ir_sideeff(ir)) { | 47 | } else if (!ir_sideeff(ir)) { |
49 | *pchain[ir->o] = ir->prev; /* Reroute original instruction chain. */ | 48 | *pchain[ir->o] = ir->prev; /* Reroute original instruction chain. */ |
50 | lj_ir_nop(ir); | 49 | lj_ir_nop(ir); |
51 | continue; | 50 | continue; |
52 | } | 51 | } |
52 | pchain[ir->o] = &ir->prev; | ||
53 | if (ir->op1 >= REF_FIRST) irt_setmark(IR(ir->op1)->t); | 53 | if (ir->op1 >= REF_FIRST) irt_setmark(IR(ir->op1)->t); |
54 | if (ir->op2 >= REF_FIRST) irt_setmark(IR(ir->op2)->t); | 54 | if (ir->op2 >= REF_FIRST) irt_setmark(IR(ir->op2)->t); |
55 | } | 55 | } |