mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
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
This commit is contained in:
parent
6bcb9a783b
commit
0fdb05deb9
@ -525,12 +525,10 @@ bool ExeDepsFix::runOnMachineFunction(MachineFunction &mf) {
|
|||||||
if (FI == LiveOuts.end())
|
if (FI == LiveOuts.end())
|
||||||
continue;
|
continue;
|
||||||
assert(FI->second && "Null entry");
|
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)
|
for (unsigned i = 0, e = NumRegs; i != e; ++i)
|
||||||
if (LiveRegs[i])
|
if (FI->second[i])
|
||||||
kill(i);
|
release(FI->second[i]);
|
||||||
delete[] LiveRegs;
|
delete[] FI->second;
|
||||||
}
|
}
|
||||||
LiveOuts.clear();
|
LiveOuts.clear();
|
||||||
Avail.clear();
|
Avail.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user