mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
a972d37ef3
@ -440,7 +440,7 @@ static LoopEvent rec_for(jit_State *J, const BCIns *fori, int isforl)
|
||||
IRType t;
|
||||
if (isforl) { /* Handle FORL/JFORL opcodes. */
|
||||
TRef idx = tr[FORL_IDX];
|
||||
if (mref(J->scev.pc, const BCIns) == fori) {
|
||||
if (mref(J->scev.pc, const BCIns) == fori && tref_ref(idx) == J->scev.idx) {
|
||||
t = J->scev.t.irt;
|
||||
stop = J->scev.stop;
|
||||
idx = emitir(IRT(IR_ADD, t), idx, J->scev.step);
|
||||
|
Loading…
Reference in New Issue
Block a user