mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
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:
parent
d02d917c72
commit
9da52dce89
@ -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
Block a user