mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-16 14:40:00 +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,9 +303,9 @@ 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 (MRegisterInfo::isVirtualRegister(Reg))
|
if (!vrm_->hasStackSlot(Reg) && HI->liveAt(StartIdx)) {
|
||||||
|
assert(MRegisterInfo::isVirtualRegister(Reg));
|
||||||
Reg = vrm_->getPhys(Reg);
|
Reg = vrm_->getPhys(Reg);
|
||||||
MBB->addLiveIn(Reg);
|
MBB->addLiveIn(Reg);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user