diff options
author | Owen Anderson <resistor@mac.com> | 2008-06-19 17:53:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-06-19 17:53:26 +0000 |
commit | 3255eba769aab0fd97c9b40985eae3ee25e0de62 (patch) | |
tree | 1e4704d8ca03b75a6159d11e90dc98007bb33acb /lib | |
parent | 0bb9a3dc0881d28a646b6a1d29c66db34bbbe12a (diff) | |
download | external_llvm-3255eba769aab0fd97c9b40985eae3ee25e0de62.zip external_llvm-3255eba769aab0fd97c9b40985eae3ee25e0de62.tar.gz external_llvm-3255eba769aab0fd97c9b40985eae3ee25e0de62.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ bool GVN::performPRE(Function& F) { UUI->second = Phi; BI->replaceAllUsesWith(Phi); + VN.erase(BI); Instruction* erase = BI; BI++; |