]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Invalidate backpropagation cache after DCE.
authorMike Pall <mike>
Thu, 24 Jul 2014 11:08:02 +0000 (13:08 +0200)
committerMike Pall <mike>
Thu, 24 Jul 2014 11:08:02 +0000 (13:08 +0200)
src/lj_opt_dce.c

index be80189471433d79d059ddf77561aa90dc554704..fdfe93435e154f4c23f8fa0292adc1a31dca6978 100644 (file)
@@ -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. */
   }
 }