Files
llvm-project/llvm/lib/CodeGen/ExecutionDomainFix.cpp
T

474 lines
15 KiB
C++
Raw Normal View History

//===- ExecutionDomainFix.cpp - Fix execution domain issues ----*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/ExecutionDomainFix.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
using namespace llvm;
2017-03-18 05:05:40 +00:00
#define DEBUG_TYPE "execution-deps-fix"
iterator_range<SmallVectorImpl<int>::const_iterator>
2018-01-22 10:05:23 +00:00
ExecutionDomainFix::regIndices(unsigned Reg) const {
assert(Reg < AliasMap.size() && "Invalid register");
const auto &Entry = AliasMap[Reg];
return make_range(Entry.begin(), Entry.end());
2010-03-29 23:24:21 +00:00
}
2018-01-22 10:05:23 +00:00
DomainValue *ExecutionDomainFix::alloc(int domain) {
2018-01-22 10:06:18 +00:00
DomainValue *dv = Avail.empty() ? new (Allocator.Allocate()) DomainValue
: Avail.pop_back_val();
if (domain >= 0)
2010-04-04 21:27:26 +00:00
dv->addDomain(domain);
assert(dv->Refs == 0 && "Reference count wasn't cleared");
2011-11-09 00:06:18 +00:00
assert(!dv->Next && "Chained DomainValue shouldn't have been recycled");
return dv;
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::release(DomainValue *DV) {
2011-11-09 00:06:18 +00:00
while (DV) {
assert(DV->Refs && "Bad DomainValue");
if (--DV->Refs)
return;
2011-11-09 00:06:18 +00:00
// There are no more DV references. Collapse any contained instructions.
if (DV->AvailableDomains && !DV->isCollapsed())
collapse(DV, DV->getFirstDomain());
2011-11-09 00:06:18 +00:00
DomainValue *Next = DV->Next;
DV->clear();
Avail.push_back(DV);
// Also release the next DomainValue in the chain.
DV = Next;
}
}
2018-01-22 10:05:23 +00:00
DomainValue *ExecutionDomainFix::resolve(DomainValue *&DVRef) {
2011-11-09 00:06:18 +00:00
DomainValue *DV = DVRef;
if (!DV || !DV->Next)
return DV;
// DV has a chain. Find the end.
2018-01-22 10:06:18 +00:00
do
DV = DV->Next;
2011-11-09 00:06:18 +00:00
while (DV->Next);
// Update DVRef to point to DV.
retain(DV);
release(DVRef);
DVRef = DV;
return DV;
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::setLiveReg(int rx, DomainValue *dv) {
2010-03-30 20:04:01 +00:00
assert(unsigned(rx) < NumRegs && "Invalid index");
2018-01-22 10:05:53 +00:00
assert(!LiveRegs.empty() && "Must enter basic block first.");
2010-03-30 20:04:01 +00:00
2018-01-22 10:06:01 +00:00
if (LiveRegs[rx] == dv)
2010-03-29 23:24:21 +00:00
return;
2018-01-22 10:06:01 +00:00
if (LiveRegs[rx])
release(LiveRegs[rx]);
LiveRegs[rx] = retain(dv);
2010-03-29 23:24:21 +00:00
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::kill(int rx) {
2010-03-30 20:04:01 +00:00
assert(unsigned(rx) < NumRegs && "Invalid index");
2018-01-22 10:05:53 +00:00
assert(!LiveRegs.empty() && "Must enter basic block first.");
2018-01-22 10:06:01 +00:00
if (!LiveRegs[rx])
2011-11-15 01:15:25 +00:00
return;
2010-03-29 23:24:21 +00:00
2018-01-22 10:06:01 +00:00
release(LiveRegs[rx]);
LiveRegs[rx] = nullptr;
2010-03-29 23:24:21 +00:00
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::force(int rx, unsigned domain) {
2010-03-30 20:04:01 +00:00
assert(unsigned(rx) < NumRegs && "Invalid index");
2018-01-22 10:05:53 +00:00
assert(!LiveRegs.empty() && "Must enter basic block first.");
2018-01-22 10:06:01 +00:00
if (DomainValue *dv = LiveRegs[rx]) {
2010-04-04 21:27:26 +00:00
if (dv->isCollapsed())
dv->addDomain(domain);
else if (dv->hasDomain(domain))
2011-11-08 21:57:47 +00:00
collapse(dv, domain);
else {
2011-09-28 00:01:56 +00:00
// This is an incompatible open DomainValue. Collapse it to whatever and
// force the new value into domain. This costs a domain crossing.
2011-11-08 21:57:47 +00:00
collapse(dv, dv->getFirstDomain());
2018-01-22 10:06:01 +00:00
assert(LiveRegs[rx] && "Not live after collapse?");
LiveRegs[rx]->addDomain(domain);
}
2010-03-29 23:24:21 +00:00
} else {
2010-03-30 20:04:01 +00:00
// Set up basic collapsed DomainValue.
2011-11-08 21:57:47 +00:00
setLiveReg(rx, alloc(domain));
2010-03-29 23:24:21 +00:00
}
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::collapse(DomainValue *dv, unsigned domain) {
2010-04-04 21:27:26 +00:00
assert(dv->hasDomain(domain) && "Cannot collapse");
2010-03-29 23:24:21 +00:00
// Collapse all the instructions.
2010-04-04 21:27:26 +00:00
while (!dv->Instrs.empty())
TII->setExecutionDomain(*dv->Instrs.pop_back_val(), domain);
2010-04-04 21:27:26 +00:00
dv->setSingleDomain(domain);
2010-03-29 23:24:21 +00:00
// If there are multiple users, give them new, unique DomainValues.
2018-01-22 10:05:53 +00:00
if (!LiveRegs.empty() && dv->Refs > 1)
2010-03-30 20:04:01 +00:00
for (unsigned rx = 0; rx != NumRegs; ++rx)
2018-01-22 10:06:01 +00:00
if (LiveRegs[rx] == dv)
2011-11-08 21:57:47 +00:00
setLiveReg(rx, alloc(domain));
2010-03-29 23:24:21 +00:00
}
2018-01-22 10:05:23 +00:00
bool ExecutionDomainFix::merge(DomainValue *A, DomainValue *B) {
2010-04-04 21:27:26 +00:00
assert(!A->isCollapsed() && "Cannot merge into collapsed");
assert(!B->isCollapsed() && "Cannot merge from collapsed");
2010-03-31 20:05:12 +00:00
if (A == B)
return true;
2010-04-04 21:27:26 +00:00
// Restrict to the domains that A and B have in common.
unsigned common = A->getCommonDomains(B->AvailableDomains);
if (!common)
2010-03-29 23:24:21 +00:00
return false;
2010-04-04 21:27:26 +00:00
A->AvailableDomains = common;
2010-03-29 23:24:21 +00:00
A->Instrs.append(B->Instrs.begin(), B->Instrs.end());
2011-11-08 20:57:04 +00:00
// Clear the old DomainValue so we won't try to swizzle instructions twice.
B->clear();
2011-11-09 00:06:18 +00:00
// All uses of B are referred to A.
B->Next = retain(A);
2011-11-08 20:57:04 +00:00
2014-12-15 18:48:43 +00:00
for (unsigned rx = 0; rx != NumRegs; ++rx) {
2018-01-22 10:05:53 +00:00
assert(!LiveRegs.empty() && "no space allocated for live registers");
2018-01-22 10:06:01 +00:00
if (LiveRegs[rx] == B)
2011-11-08 21:57:47 +00:00
setLiveReg(rx, A);
2014-12-15 18:48:43 +00:00
}
2010-03-29 23:24:21 +00:00
return true;
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::enterBasicBlock(
const LoopTraversal::TraversedMBBInfo &TraversedMBB) {
MachineBasicBlock *MBB = TraversedMBB.MBB;
// Set up LiveRegs to represent registers entering MBB.
2018-01-22 10:06:01 +00:00
// Set default domain values to 'no domain' (nullptr)
2018-01-22 10:05:53 +00:00
if (LiveRegs.empty())
2018-01-22 10:06:01 +00:00
LiveRegs.assign(NumRegs, nullptr);
2018-01-22 10:05:23 +00:00
// This is the entry block.
if (MBB->pred_empty()) {
2018-05-14 12:53:11 +00:00
LLVM_DEBUG(dbgs() << printMBBReference(*MBB) << ": entry\n");
2018-01-22 10:05:23 +00:00
return;
}
// Try to coalesce live-out registers from predecessors.
2018-01-22 10:06:18 +00:00
for (MachineBasicBlock *pred : MBB->predecessors()) {
2018-01-22 13:24:10 +00:00
assert(unsigned(pred->getNumber()) < MBBOutRegsInfos.size() &&
2018-01-22 10:06:18 +00:00
"Should have pre-allocated MBBInfos for all MBBs");
LiveRegsDVInfo &Incoming = MBBOutRegsInfos[pred->getNumber()];
// Incoming is null if this is a backedge from a BB
// we haven't processed yet
2018-01-22 10:05:53 +00:00
if (Incoming.empty())
2011-11-15 01:15:25 +00:00
continue;
for (unsigned rx = 0; rx != NumRegs; ++rx) {
2018-01-22 10:06:01 +00:00
DomainValue *pdv = resolve(Incoming[rx]);
2011-11-15 01:15:25 +00:00
if (!pdv)
continue;
2018-01-22 10:06:01 +00:00
if (!LiveRegs[rx]) {
2011-11-08 21:57:47 +00:00
setLiveReg(rx, pdv);
2010-03-31 20:32:51 +00:00
continue;
2010-03-30 20:04:01 +00:00
}
2010-03-31 20:32:51 +00:00
// We have a live DomainValue from more than one predecessor.
2018-01-22 10:06:01 +00:00
if (LiveRegs[rx]->isCollapsed()) {
2014-05-20 17:11:11 +00:00
// We are already collapsed, but predecessor is not. Force it.
2018-01-22 10:06:01 +00:00
unsigned Domain = LiveRegs[rx]->getFirstDomain();
2011-11-15 01:15:25 +00:00
if (!pdv->isCollapsed() && pdv->hasDomain(Domain))
collapse(pdv, Domain);
2010-03-31 20:32:51 +00:00
continue;
}
2010-03-31 20:32:51 +00:00
// Currently open, merge in predecessor.
2010-04-04 21:27:26 +00:00
if (!pdv->isCollapsed())
2018-01-22 10:06:01 +00:00
merge(LiveRegs[rx], pdv);
2010-03-31 20:32:51 +00:00
else
2011-11-08 21:57:47 +00:00
force(rx, pdv->getFirstDomain());
2010-03-30 20:04:01 +00:00
}
}
2018-05-14 12:53:11 +00:00
LLVM_DEBUG(dbgs() << printMBBReference(*MBB)
<< (!TraversedMBB.IsDone ? ": incomplete\n"
: ": all preds known\n"));
2010-03-29 23:24:21 +00:00
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::leaveBasicBlock(
const LoopTraversal::TraversedMBBInfo &TraversedMBB) {
2018-01-22 10:05:53 +00:00
assert(!LiveRegs.empty() && "Must enter basic block first.");
2018-01-22 13:24:10 +00:00
unsigned MBBNumber = TraversedMBB.MBB->getNumber();
2018-01-22 10:06:18 +00:00
assert(MBBNumber < MBBOutRegsInfos.size() &&
"Unexpected basic block number.");
2018-01-22 10:05:23 +00:00
// Save register clearances at end of MBB - used by enterBasicBlock().
2018-01-22 10:06:01 +00:00
for (DomainValue *OldLiveReg : MBBOutRegsInfos[MBBNumber]) {
release(OldLiveReg);
}
2018-01-22 10:06:01 +00:00
MBBOutRegsInfos[MBBNumber] = LiveRegs;
2018-01-22 10:05:53 +00:00
LiveRegs.clear();
2011-11-07 21:40:27 +00:00
}
2018-01-22 10:05:23 +00:00
bool ExecutionDomainFix::visitInstr(MachineInstr *MI) {
2011-11-15 01:15:25 +00:00
// Update instructions with explicit execution domains.
std::pair<uint16_t, uint16_t> DomP = TII->getExecutionDomain(*MI);
2011-11-15 01:15:25 +00:00
if (DomP.first) {
if (DomP.second)
visitSoftInstr(MI, DomP.second);
2011-11-07 21:40:27 +00:00
else
2011-11-15 01:15:25 +00:00
visitHardInstr(MI, DomP.first);
}
return !DomP.first;
2011-11-15 01:15:25 +00:00
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::processDefs(MachineInstr *MI, bool Kill) {
assert(!MI->isDebugInstr() && "Won't process debug values");
2011-11-15 01:15:25 +00:00
const MCInstrDesc &MCID = MI->getDesc();
for (unsigned i = 0,
2018-01-22 10:06:18 +00:00
e = MI->isVariadic() ? MI->getNumOperands() : MCID.getNumDefs();
i != e; ++i) {
2011-11-15 01:15:25 +00:00
MachineOperand &MO = MI->getOperand(i);
if (!MO.isReg())
continue;
if (MO.isUse())
continue;
2015-03-06 18:56:20 +00:00
for (int rx : regIndices(MO.getReg())) {
// This instruction explicitly defines rx.
2018-05-14 12:53:11 +00:00
LLVM_DEBUG(dbgs() << printReg(RC->getRegister(rx), TRI) << ":\t" << *MI);
// Kill off domains redefined by generic instructions.
if (Kill)
kill(rx);
}
2011-11-15 01:15:25 +00:00
}
2018-01-22 10:05:23 +00:00
}
void ExecutionDomainFix::visitHardInstr(MachineInstr *mi, unsigned domain) {
2010-03-29 23:24:21 +00:00
// Collapse all uses.
for (unsigned i = mi->getDesc().getNumDefs(),
2018-01-22 10:06:18 +00:00
e = mi->getDesc().getNumOperands();
i != e; ++i) {
2010-03-29 23:24:21 +00:00
MachineOperand &mo = mi->getOperand(i);
2018-01-22 10:06:18 +00:00
if (!mo.isReg())
continue;
2015-03-06 18:56:20 +00:00
for (int rx : regIndices(mo.getReg())) {
force(rx, domain);
}
2010-03-29 23:24:21 +00:00
}
// Kill all defs and force them.
for (unsigned i = 0, e = mi->getDesc().getNumDefs(); i != e; ++i) {
MachineOperand &mo = mi->getOperand(i);
2018-01-22 10:06:18 +00:00
if (!mo.isReg())
continue;
2015-03-06 18:56:20 +00:00
for (int rx : regIndices(mo.getReg())) {
kill(rx);
force(rx, domain);
}
2010-03-29 23:24:21 +00:00
}
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::visitSoftInstr(MachineInstr *mi, unsigned mask) {
2010-04-04 21:27:26 +00:00
// Bitmask of available domains for this instruction after taking collapsed
// operands into account.
unsigned available = mask;
2010-03-29 23:24:21 +00:00
// Scan the explicit use operands for incoming domains.
SmallVector<int, 4> used;
2018-01-22 10:05:53 +00:00
if (!LiveRegs.empty())
2010-03-30 20:04:01 +00:00
for (unsigned i = mi->getDesc().getNumDefs(),
2018-01-22 10:06:18 +00:00
e = mi->getDesc().getNumOperands();
i != e; ++i) {
2010-03-31 20:32:51 +00:00
MachineOperand &mo = mi->getOperand(i);
2018-01-22 10:06:18 +00:00
if (!mo.isReg())
continue;
2015-03-06 18:56:20 +00:00
for (int rx : regIndices(mo.getReg())) {
2018-01-22 10:06:01 +00:00
DomainValue *dv = LiveRegs[rx];
if (dv == nullptr)
continue;
2010-04-04 21:27:26 +00:00
// Bitmask of domains that dv and available have in common.
unsigned common = dv->getCommonDomains(available);
2010-03-31 20:32:51 +00:00
// Is it possible to use this collapsed register for free?
2010-04-04 21:27:26 +00:00
if (dv->isCollapsed()) {
// Restrict available domains to the ones in common with the operand.
// If there are no common domains, we must pay the cross-domain
2010-04-04 21:27:26 +00:00
// penalty for this operand.
2018-01-22 10:06:18 +00:00
if (common)
available = common;
2010-04-04 21:27:26 +00:00
} else if (common)
// Open DomainValue is compatible, save it for merging.
2010-03-31 20:32:51 +00:00
used.push_back(rx);
else
2010-04-04 21:27:26 +00:00
// Open DomainValue is not compatible with instruction. It is useless
// now.
2011-11-08 21:57:47 +00:00
kill(rx);
2010-03-31 20:32:51 +00:00
}
2010-03-29 23:24:21 +00:00
}
// If the collapsed operands force a single domain, propagate the collapse.
2010-04-04 21:27:26 +00:00
if (isPowerOf2_32(available)) {
unsigned domain = countTrailingZeros(available);
TII->setExecutionDomain(*mi, domain);
2010-03-29 23:24:21 +00:00
visitHardInstr(mi, domain);
return;
}
2010-04-04 21:27:26 +00:00
// Kill off any remaining uses that don't match available, and build a list of
// incoming DomainValues that we want to merge.
2018-01-22 10:06:01 +00:00
SmallVector<int, 4> Regs;
for (int rx : used) {
2018-01-22 10:05:53 +00:00
assert(!LiveRegs.empty() && "no space allocated for live registers");
2018-01-22 10:06:01 +00:00
DomainValue *&LR = LiveRegs[rx];
2010-03-30 20:04:01 +00:00
// This useless DomainValue could have been missed above.
2018-01-22 10:06:01 +00:00
if (!LR->getCommonDomains(available)) {
2011-11-15 01:15:25 +00:00
kill(rx);
2010-03-29 23:24:21 +00:00
continue;
}
2011-11-15 01:15:25 +00:00
// Sorted insertion.
2018-01-22 10:06:01 +00:00
// Enables giving priority to the latest domains during merging.
2018-01-22 10:06:18 +00:00
auto I = std::upper_bound(
Regs.begin(), Regs.end(), rx, [&](int LHS, const int RHS) {
return RDA->getReachingDef(mi, RC->getRegister(LHS)) <
RDA->getReachingDef(mi, RC->getRegister(RHS));
});
2018-01-22 10:06:01 +00:00
Regs.insert(I, rx);
2010-03-29 23:24:21 +00:00
}
2010-04-04 21:27:26 +00:00
// doms are now sorted in order of appearance. Try to merge them all, giving
// priority to the latest ones.
DomainValue *dv = nullptr;
2011-11-15 01:15:25 +00:00
while (!Regs.empty()) {
2010-03-31 20:32:51 +00:00
if (!dv) {
2018-01-22 10:06:01 +00:00
dv = LiveRegs[Regs.pop_back_val()];
2011-11-23 04:03:08 +00:00
// Force the first dv to match the current instruction.
dv->AvailableDomains = dv->getCommonDomains(available);
assert(dv->AvailableDomains && "Domain should have been filtered");
2010-03-31 20:32:51 +00:00
continue;
}
2018-01-22 10:06:01 +00:00
DomainValue *Latest = LiveRegs[Regs.pop_back_val()];
2011-11-15 01:15:25 +00:00
// Skip already merged values.
if (Latest == dv || Latest->Next)
continue;
if (merge(dv, Latest))
continue;
2010-04-04 21:27:26 +00:00
// If latest didn't merge, it is useless now. Kill all registers using it.
2014-12-15 18:48:43 +00:00
for (int i : used) {
2018-01-22 10:05:53 +00:00
assert(!LiveRegs.empty() && "no space allocated for live registers");
2018-01-22 10:06:01 +00:00
if (LiveRegs[i] == Latest)
2014-12-15 18:48:43 +00:00
kill(i);
}
2010-03-29 23:24:21 +00:00
}
// dv is the DomainValue we are going to use for this instruction.
2011-11-23 04:03:08 +00:00
if (!dv) {
2011-11-08 21:57:47 +00:00
dv = alloc();
2011-11-23 04:03:08 +00:00
dv->AvailableDomains = available;
}
2010-03-29 23:24:21 +00:00
dv->Instrs.push_back(mi);
// Finally set all defs and non-collapsed uses to dv. We must iterate through
// all the operators, including imp-def ones.
2018-01-22 10:05:37 +00:00
for (MachineOperand &mo : mi->operands()) {
2018-01-22 10:06:18 +00:00
if (!mo.isReg())
continue;
2015-03-06 18:56:20 +00:00
for (int rx : regIndices(mo.getReg())) {
2018-01-22 10:06:01 +00:00
if (!LiveRegs[rx] || (mo.isDef() && LiveRegs[rx] != dv)) {
kill(rx);
setLiveReg(rx, dv);
}
2010-03-29 23:24:21 +00:00
}
}
}
2018-01-22 10:05:23 +00:00
void ExecutionDomainFix::processBasicBlock(
const LoopTraversal::TraversedMBBInfo &TraversedMBB) {
enterBasicBlock(TraversedMBB);
// If this block is not done, it makes little sense to make any decisions
// based on clearance information. We need to make a second pass anyway,
// and by then we'll have better information, so we can avoid doing the work
// to try and break dependencies now.
2018-01-22 10:05:23 +00:00
for (MachineInstr &MI : *TraversedMBB.MBB) {
if (!MI.isDebugInstr()) {
bool Kill = false;
2018-01-22 10:05:23 +00:00
if (TraversedMBB.PrimaryPass)
Kill = visitInstr(&MI);
2018-01-22 10:05:23 +00:00
processDefs(&MI, Kill);
}
}
2018-01-22 10:05:23 +00:00
leaveBasicBlock(TraversedMBB);
}
2018-01-22 10:05:23 +00:00
bool ExecutionDomainFix::runOnMachineFunction(MachineFunction &mf) {
if (skipFunction(mf.getFunction()))
return false;
MF = &mf;
TII = MF->getSubtarget().getInstrInfo();
TRI = MF->getSubtarget().getRegisterInfo();
2018-01-22 10:05:53 +00:00
LiveRegs.clear();
2018-01-22 10:05:23 +00:00
assert(NumRegs == RC->getNumRegs() && "Bad regclass");
2018-05-14 12:53:11 +00:00
LLVM_DEBUG(dbgs() << "********** FIX EXECUTION DOMAIN: "
<< TRI->getRegClassName(RC) << " **********\n");
2018-01-22 10:05:23 +00:00
// If no relevant registers are used in the function, we can skip it
// completely.
bool anyregs = false;
const MachineRegisterInfo &MRI = mf.getRegInfo();
for (unsigned Reg : *RC) {
if (MRI.isPhysRegUsed(Reg)) {
anyregs = true;
break;
}
}
2018-01-22 10:06:18 +00:00
if (!anyregs)
return false;
2018-01-22 10:05:23 +00:00
2018-01-22 10:05:37 +00:00
RDA = &getAnalysis<ReachingDefAnalysis>();
2018-01-22 10:05:23 +00:00
// Initialize the AliasMap on the first use.
if (AliasMap.empty()) {
// Given a PhysReg, AliasMap[PhysReg] returns a list of indices into RC and
// therefore the LiveRegs array.
AliasMap.resize(TRI->getNumRegs());
for (unsigned i = 0, e = RC->getNumRegs(); i != e; ++i)
2018-01-22 10:06:18 +00:00
for (MCRegAliasIterator AI(RC->getRegister(i), TRI, true); AI.isValid();
++AI)
2018-01-22 10:05:23 +00:00
AliasMap[*AI].push_back(i);
}
// Initialize the MBBOutRegsInfos
2018-01-22 10:05:53 +00:00
MBBOutRegsInfos.resize(mf.getNumBlockIDs());
2018-01-22 10:05:23 +00:00
// Traverse the basic blocks.
LoopTraversal Traversal;
2018-01-22 10:05:37 +00:00
LoopTraversal::TraversalOrder TraversedMBBOrder = Traversal.traverse(mf);
for (LoopTraversal::TraversedMBBInfo TraversedMBB : TraversedMBBOrder) {
2018-01-22 10:05:23 +00:00
processBasicBlock(TraversedMBB);
}
2018-01-22 10:06:18 +00:00
for (LiveRegsDVInfo OutLiveRegs : MBBOutRegsInfos) {
2018-01-22 10:06:01 +00:00
for (DomainValue *OutLiveReg : OutLiveRegs) {
if (OutLiveReg)
release(OutLiveReg);
2018-01-22 10:05:53 +00:00
}
2011-11-07 23:08:21 +00:00
}
2018-01-22 10:05:23 +00:00
MBBOutRegsInfos.clear();
Avail.clear();
Allocator.DestroyAll();
2010-03-29 23:24:21 +00:00
return false;
}