softjit: Prefer easier to refill regs.

This commit is contained in:
Unknown W. Brackets committed 2021-11-26 09:30:47 -08:00
1 parent 932481d3cd
commit a07017dbb0
1 file changed
+3
+3
View File
@@ -696,6 +696,9 @@ PixelRegCache::Reg PixelRegCache::Alloc(PixelRegCache::Purpose p, PixelRegCache:
best = ®
break;
}
// But also prefer a lower priority reg.
if (reg.purpose < best->purpose)
best = &reg;
}
if (best) {