Tune loop unrolling heuristics. Increase trace recorder limits.
This commit is contained in:
@@ -521,7 +521,9 @@ static void rec_loop_interp(jit_State *J, const BCIns *pc, LoopEvent ev)
|
||||
*/
|
||||
if (!innerloopleft(J, pc))
|
||||
lj_trace_err(J, LJ_TRERR_LINNER); /* Root trace hit an inner loop. */
|
||||
if ((J->loopref && J->cur.nins - J->loopref > 8) || --J->loopunroll < 0)
|
||||
if ((J->loopref && J->cur.nins - J->loopref >
|
||||
((IRRef)J->param[JIT_P_maxrecord] >> 5)) ||
|
||||
--J->loopunroll < 0)
|
||||
lj_trace_err(J, LJ_TRERR_LUNROLL); /* Limit loop unrolling. */
|
||||
J->loopref = J->cur.nins;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user