2
0
Эх сурвалжийг харах

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

Mike Pall 14 жил өмнө
parent
commit
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) {
     Reg r = rset_pickbot(work);
     IRRef ref = regcost_ref(as->cost[r]);
-    if (irref_isk(ref)) {
+    if (emit_canremat(ref) && irref_isk(ref)) {
       ra_rematk(as, ref);
       checkmclim(as);
     }