From: Owen Anderson Date: Thu, 19 Jun 2008 17:53:26 +0000 (+0000) Subject: Be sure to remove values from the value numbering table after we delete them. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9da52dce892ff57f40aab29acf909f9b2fba7906;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index c9eb2474328..f8522694286 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++;