mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-13 04:52:50 +00:00
Only add liveinterval to livein set if it isn't assigned a stack slot.
llvm-svn: 34593
This commit is contained in:
parent
65ba08d627
commit
9968353d64
@ -303,10 +303,10 @@ void RA::linearScan()
|
||||
|
||||
for (unsigned i = 0, e = handled_.size(); i != e; ++i) {
|
||||
LiveInterval *HI = handled_[i];
|
||||
if (HI->liveAt(StartIdx)) {
|
||||
unsigned Reg = HI->reg;
|
||||
if (MRegisterInfo::isVirtualRegister(Reg))
|
||||
Reg = vrm_->getPhys(Reg);
|
||||
unsigned Reg = HI->reg;
|
||||
if (!vrm_->hasStackSlot(Reg) && HI->liveAt(StartIdx)) {
|
||||
assert(MRegisterInfo::isVirtualRegister(Reg));
|
||||
Reg = vrm_->getPhys(Reg);
|
||||
MBB->addLiveIn(Reg);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user