forked from OSchip/llvm-project
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:
parent
ed2250990a
commit
ff21db851d
|
@ -1234,6 +1234,7 @@ bool GVN::performPRE(Function& F) {
|
|||
UUI->second = Phi;
|
||||
|
||||
BI->replaceAllUsesWith(Phi);
|
||||
VN.erase(BI);
|
||||
|
||||
Instruction* erase = BI;
|
||||
BI++;
|
||||
|
|
Loading…
Reference in New Issue