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
This commit is contained in:
Jakob Stoklund Olesen 2011-11-08 22:05:17 +00:00
parent 9e338bb0f3
commit 5d08293999
1 changed files with 3 additions and 5 deletions

View File

@ -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();