mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Improve unrolling heuristics for non-looping inner loops.
This commit is contained in:
parent
7338456796
commit
18fbf86c9e
@ -426,7 +426,8 @@ static int innerloopleft(jit_State *J, const BCIns *pc)
|
|||||||
ptrdiff_t i;
|
ptrdiff_t i;
|
||||||
for (i = 0; i < PENALTY_SLOTS; i++)
|
for (i = 0; i < PENALTY_SLOTS; i++)
|
||||||
if (mref(J->penalty[i].pc, const BCIns) == pc) {
|
if (mref(J->penalty[i].pc, const BCIns) == pc) {
|
||||||
if (J->penalty[i].reason == LJ_TRERR_LLEAVE &&
|
if ((J->penalty[i].reason == LJ_TRERR_LLEAVE ||
|
||||||
|
J->penalty[i].reason == LJ_TRERR_LINNER) &&
|
||||||
J->penalty[i].val >= 2*PENALTY_MIN)
|
J->penalty[i].val >= 2*PENALTY_MIN)
|
||||||
return 1;
|
return 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user