Be sure to remove values from the value numbering table after we delete them.

This fixes a failure on povray.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52499 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-06-19 17:53:26 +00:00
parent d02d917c72
commit 9da52dce89

View File

@ -1234,6 +1234,7 @@ bool GVN::performPRE(Function& F) {
UUI->second = Phi;
BI->replaceAllUsesWith(Phi);
VN.erase(BI);
Instruction* erase = BI;
BI++;