mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-02 17:09:05 +00:00
Don't forget to remove phi nodes from the value numbering table after we collapse them.
llvm-svn: 61358
This commit is contained in:
parent
faf474af38
commit
450f83fd54
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user