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

This fixes a failure on povray.

llvm-svn: 52499
This commit is contained in:
Owen Anderson 2008-06-19 17:53:26 +00:00
parent ed2250990a
commit ff21db851d
1 changed files with 1 additions and 0 deletions

View File

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