瀏覽代碼

ARM: Don't evict ASMREF_L in ra_evictk().

Mike Pall 14 年之前
父節點
當前提交
eb92daad0a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lj_asm.c

+ 1 - 1
src/lj_asm.c

@@ -464,7 +464,7 @@ static void ra_evictk(ASMState *as)
   while (work) {
   while (work) {
     Reg r = rset_pickbot(work);
     Reg r = rset_pickbot(work);
     IRRef ref = regcost_ref(as->cost[r]);
     IRRef ref = regcost_ref(as->cost[r]);
-    if (irref_isk(ref)) {
+    if (emit_canremat(ref) && irref_isk(ref)) {
       ra_rematk(as, ref);
       ra_rematk(as, ref);
       checkmclim(as);
       checkmclim(as);
     }
     }