mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-05 03:10:29 +00:00
Only add liveinterval to livein set if it isn't assigned a stack slot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34593 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e265b29ea
commit
bc025fbb64
@ -303,10 +303,10 @@ void RA::linearScan()
|
|||||||
|
|
||||||
for (unsigned i = 0, e = handled_.size(); i != e; ++i) {
|
for (unsigned i = 0, e = handled_.size(); i != e; ++i) {
|
||||||
LiveInterval *HI = handled_[i];
|
LiveInterval *HI = handled_[i];
|
||||||
if (HI->liveAt(StartIdx)) {
|
unsigned Reg = HI->reg;
|
||||||
unsigned Reg = HI->reg;
|
if (!vrm_->hasStackSlot(Reg) && HI->liveAt(StartIdx)) {
|
||||||
if (MRegisterInfo::isVirtualRegister(Reg))
|
assert(MRegisterInfo::isVirtualRegister(Reg));
|
||||||
Reg = vrm_->getPhys(Reg);
|
Reg = vrm_->getPhys(Reg);
|
||||||
MBB->addLiveIn(Reg);
|
MBB->addLiveIn(Reg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user