summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-11-08 22:05:17 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-11-08 22:05:17 +0000
commit5d08293999c64c28d7253d7e76ea98a36c71e842 (patch)
treef557a0583249b66ebd05b333f7a3486bf3e4f4e9
parent9e338bb0f3f424c79575ab082146e91783f48199 (diff)
downloadbcm5719-llvm-5d08293999c64c28d7253d7e76ea98a36c71e842.tar.gz
bcm5719-llvm-5d08293999c64c28d7253d7e76ea98a36c71e842.zip
Call release() directly when cleaning up the remaining DomainValues.
There is no need to involve the LiveRegs array and kill() any longer. llvm-svn: 144133
-rw-r--r--llvm/lib/CodeGen/ExecutionDepsFix.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/ExecutionDepsFix.cpp b/llvm/lib/CodeGen/ExecutionDepsFix.cpp
index 994a5c36e7c..5a75fde2d6d 100644
--- a/llvm/lib/CodeGen/ExecutionDepsFix.cpp
+++ b/llvm/lib/CodeGen/ExecutionDepsFix.cpp
@@ -525,12 +525,10 @@ bool ExeDepsFix::runOnMachineFunction(MachineFunction &mf) {
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();
OpenPOWER on IntegriCloud