summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ExecutionDepsFix.cpp
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
commit0fdb05deb9ccbebe55c05f2fb4af6ea813c97a98 (patch)
tree960f69d675d483e7e1c039f996699c80b762f21c /lib/CodeGen/ExecutionDepsFix.cpp
parent6bcb9a783b3220561ee3413322ad1037983d63cb (diff)
downloadllvm-0fdb05deb9ccbebe55c05f2fb4af6ea813c97a98.tar.gz
llvm-0fdb05deb9ccbebe55c05f2fb4af6ea813c97a98.tar.bz2
llvm-0fdb05deb9ccbebe55c05f2fb4af6ea813c97a98.tar.xz
Call release() directly when cleaning up the remaining DomainValues.
There is no need to involve the LiveRegs array and kill() any longer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ExecutionDepsFix.cpp')
-rw-r--r--lib/CodeGen/ExecutionDepsFix.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/CodeGen/ExecutionDepsFix.cpp b/lib/CodeGen/ExecutionDepsFix.cpp
index 994a5c36e7..5a75fde2d6 100644
--- a/lib/CodeGen/ExecutionDepsFix.cpp
+++ b/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();