mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Fix TNEW load forwarding with instable types.
This commit is contained in:
parent
9bd5a722be
commit
d4c0c6e17e
@ -179,7 +179,8 @@ static TRef fwd_ahload(jit_State *J, IRRef xref)
|
||||
}
|
||||
ref = store->prev;
|
||||
}
|
||||
lua_assert(ir->o != IR_TNEW || irt_isnil(fins->t));
|
||||
if (ir->o == IR_TNEW && !irt_isnil(fins->t))
|
||||
return 0; /* Type instability in loop-carried dependency. */
|
||||
if (irt_ispri(fins->t)) {
|
||||
return TREF_PRI(irt_type(fins->t));
|
||||
} else if (irt_isnum(fins->t) || (LJ_DUALNUM && irt_isint(fins->t)) ||
|
||||
|
Loading…
Reference in New Issue
Block a user