commit | 3255eba769aab0fd97c9b40985eae3ee25e0de62 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Thu Jun 19 17:53:26 2008 +0000 |
committer | Owen Anderson <resistor@mac.com> | Thu Jun 19 17:53:26 2008 +0000 |
tree | 1e4704d8ca03b75a6159d11e90dc98007bb33acb | |
parent | 0bb9a3dc0881d28a646b6a1d29c66db34bbbe12a [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
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index c9eb247..f852269 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp
@@ -1234,6 +1234,7 @@ UUI->second = Phi; BI->replaceAllUsesWith(Phi); + VN.erase(BI); Instruction* erase = BI; BI++;