mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Fix detection of inconsistent renames due to sunk values.
Thanks to Sergey Kaplun. #1295 #584
This commit is contained in:
parent
5141cbc20c
commit
811e448daa
@ -826,11 +826,11 @@ static int asm_sunk_store(ASMState *as, IRIns *ira, IRIns *irs)
|
|||||||
static void asm_snap_alloc1(ASMState *as, IRRef ref)
|
static void asm_snap_alloc1(ASMState *as, IRRef ref)
|
||||||
{
|
{
|
||||||
IRIns *ir = IR(ref);
|
IRIns *ir = IR(ref);
|
||||||
if (!irref_isk(ref) && ir->r != RID_SUNK) {
|
if (!irref_isk(ref)) {
|
||||||
bloomset(as->snapfilt1, ref);
|
bloomset(as->snapfilt1, ref);
|
||||||
bloomset(as->snapfilt2, hashrot(ref, ref + HASH_BIAS));
|
bloomset(as->snapfilt2, hashrot(ref, ref + HASH_BIAS));
|
||||||
if (ra_used(ir)) return;
|
if (ra_used(ir)) return;
|
||||||
if (ir->r == RID_SINK) {
|
if (ir->r == RID_SINK || ir->r == RID_SUNK) {
|
||||||
ir->r = RID_SUNK;
|
ir->r = RID_SUNK;
|
||||||
#if LJ_HASFFI
|
#if LJ_HASFFI
|
||||||
if (ir->o == IR_CNEWI) { /* Allocate CNEWI value. */
|
if (ir->o == IR_CNEWI) { /* Allocate CNEWI value. */
|
||||||
|
Loading…
Reference in New Issue
Block a user