Browse Source

Invalidate backpropagation cache after DCE.

Mike Pall 11 years ago
parent
commit
59d290656a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/lj_opt_dce.c

+ 1 - 0
src/lj_opt_dce.c

@@ -69,6 +69,7 @@ void lj_opt_dce(jit_State *J)
   if ((J->flags & JIT_F_OPT_DCE)) {
     dce_marksnap(J);
     dce_propagate(J);
+    memset(J->bpropcache, 0, sizeof(J->bpropcache));  /* Invalidate cache. */
   }
 }