mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
When removing a value from GVN's leaders list, don't drop the Next pointer in a corner case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122822 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c84e3c0c03
commit
680ac4ff4e
@ -466,6 +466,7 @@ namespace {
|
||||
NumberTableEntry* Next = Curr->Next;
|
||||
Curr->Val = Next->Val;
|
||||
Curr->BB = Next->BB;
|
||||
Curr->Next = Next->Next;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1693,7 +1694,7 @@ bool GVN::processInstruction(Instruction *I,
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
uint32_t NextNum = VN.getNextUnusedValueNumber();
|
||||
unsigned Num = VN.lookup_or_add(I);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user