1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

When removing a value from GVN's leaders list, don't drop the Next pointer in a corner case.

llvm-svn: 122822
This commit is contained in:
Owen Anderson 2011-01-04 19:10:54 +00:00
parent de70d69dff
commit 192bc8fe10

View File

@ -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);