Don't forget to remove phi nodes from the value numbering table after we collapse them.

llvm-svn: 61358
This commit is contained in:
Owen Anderson 2008-12-23 00:49:51 +00:00
parent faf474af38
commit 450f83fd54

View File

@ -1313,6 +1313,8 @@ bool GVN::processInstruction(Instruction *I,
p->replaceAllUsesWith(constVal);
if (isa<PointerType>(constVal->getType()))
MD->invalidateCachedPointerInfo(constVal);
VN.erase(p);
toErase.push_back(p);
} else {
localAvail[I->getParent()]->table.insert(std::make_pair(num, I));