mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Simplify handleMove() a bit.
There is no need to check for physreg live ranges. They don't exist any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159019 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
27b7669a60
commit
e024874d22
@ -1000,15 +1000,15 @@ private:
|
||||
|
||||
// Collect ranges for register units. These live ranges are computed on
|
||||
// demand, so just skip any that haven't been computed yet.
|
||||
if (TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||
if (TargetRegisterInfo::isPhysicalRegister(Reg)) {
|
||||
for (MCRegUnitIterator Units(Reg, &TRI); Units.isValid(); ++Units)
|
||||
if (LiveInterval *LI = LIS.getCachedRegUnit(*Units))
|
||||
collectRanges(MO, LI, Entering, Internal, Exiting, OldIdx);
|
||||
|
||||
// Collect ranges for individual registers.
|
||||
if (LIS.hasInterval(Reg))
|
||||
} else {
|
||||
// Collect ranges for individual virtual registers.
|
||||
collectRanges(MO, &LIS.getInterval(Reg),
|
||||
Entering, Internal, Exiting, OldIdx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user