[llvm-commits] [llvm] r144133 - /llvm/trunk/lib/CodeGen/ExecutionDepsFix.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Nov 8 14:05:17 PST 2011


Author: stoklund
Date: Tue Nov  8 16:05:17 2011
New Revision: 144133

URL: http://llvm.org/viewvc/llvm-project?rev=144133&view=rev
Log:
Call release() directly when cleaning up the remaining DomainValues.

There is no need to involve the LiveRegs array and kill() any longer.

Modified:
    llvm/trunk/lib/CodeGen/ExecutionDepsFix.cpp

Modified: llvm/trunk/lib/CodeGen/ExecutionDepsFix.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ExecutionDepsFix.cpp?rev=144133&r1=144132&r2=144133&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ExecutionDepsFix.cpp (original)
+++ llvm/trunk/lib/CodeGen/ExecutionDepsFix.cpp Tue Nov  8 16:05:17 2011
@@ -525,12 +525,10 @@
     if (FI == LiveOuts.end())
       continue;
     assert(FI->second && "Null entry");
-    // The DomainValue is collapsed when the last reference is killed.
-    LiveRegs = FI->second;
     for (unsigned i = 0, e = NumRegs; i != e; ++i)
-      if (LiveRegs[i])
-        kill(i);
-    delete[] LiveRegs;
+      if (FI->second[i])
+        release(FI->second[i]);
+    delete[] FI->second;
   }
   LiveOuts.clear();
   Avail.clear();





More information about the llvm-commits mailing list