[llvm-commits] [llvm] r52499 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp

Owen Anderson resistor at mac.com
Thu Jun 19 10:53:26 PDT 2008


Author: resistor
Date: Thu Jun 19 12:53:26 2008
New Revision: 52499

URL: http://llvm.org/viewvc/llvm-project?rev=52499&view=rev
Log:
Be sure to remove values from the value numbering table after we delete them.
This fixes a failure on povray.

Modified:
    llvm/trunk/lib/Transforms/Scalar/GVN.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=52499&r1=52498&r2=52499&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Thu Jun 19 12:53:26 2008
@@ -1234,6 +1234,7 @@
               UUI->second = Phi;
       
       BI->replaceAllUsesWith(Phi);
+      VN.erase(BI);
       
       Instruction* erase = BI;
       BI++;





More information about the llvm-commits mailing list