mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Remove simple coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -617,17 +617,6 @@ unsigned RA::getFreePhysReg(Intervals::const_iterator cur)
|
||||
DEBUG(std::cerr << "\t\tgetting free physical register: ");
|
||||
const TargetRegisterClass* rc = mf_->getSSARegMap()->getRegClass(cur->reg);
|
||||
|
||||
if (unsigned reg = cur->hint) {
|
||||
if (reg >= MRegisterInfo::FirstVirtualRegister &&
|
||||
v2pMap_.find(reg) != v2pMap_.end())
|
||||
reg = v2pMap_[reg];
|
||||
if (reg && reg < MRegisterInfo::FirstVirtualRegister &&
|
||||
mri_->getRegClass(reg) == rc && !regUse_[reg]) {
|
||||
DEBUG(std::cerr << mri_->getName(reg) << '\n');
|
||||
return reg;
|
||||
}
|
||||
}
|
||||
|
||||
for (TargetRegisterClass::iterator i = rc->allocation_order_begin(*mf_);
|
||||
i != rc->allocation_order_end(*mf_); ++i) {
|
||||
unsigned reg = *i;
|
||||
|
Reference in New Issue
Block a user