aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-06-19 17:53:26 +0000
committerOwen Anderson <resistor@mac.com>2008-06-19 17:53:26 +0000
commit9da52dce892ff57f40aab29acf909f9b2fba7906 (patch)
tree1e4704d8ca03b75a6159d11e90dc98007bb33acb
parentd02d917c72b80fc23636fd259bb11bb193a996d6 (diff)
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
-rw-r--r--lib/Transforms/Scalar/GVN.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp
index c9eb247432..f852269428 100644
--- a/lib/Transforms/Scalar/GVN.cpp
+++ b/lib/Transforms/Scalar/GVN.cpp
@@ -1234,6 +1234,7 @@ bool GVN::performPRE(Function& F) {
UUI->second = Phi;
BI->replaceAllUsesWith(Phi);
+ VN.erase(BI);
Instruction* erase = BI;
BI++;