mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-24 07:35:04 +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…
x
Reference in New Issue
Block a user