mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
typo fix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7422a76100
commit
c9d94d1290
@ -202,12 +202,13 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
|
||||
|
||||
for (iterator I = begin(), E = end(); I != E; ++I) {
|
||||
LiveInterval &li = I->second;
|
||||
if (MRegisterInfo::isVirtualRegister(li.reg))
|
||||
// If the live interval legnth is essentially zero, i.e. in every live
|
||||
if (MRegisterInfo::isVirtualRegister(li.reg)) {
|
||||
// If the live interval length is essentially zero, i.e. in every live
|
||||
// range the use follows def immediately, it doesn't make sense to spill
|
||||
// it and hope it will be easier to allocate for this li.
|
||||
if (isZeroLengthInterval(&li))
|
||||
li.weight = float(HUGE_VAL);
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(dump());
|
||||
@ -931,6 +932,6 @@ bool LiveIntervals::differingRegisterClasses(unsigned RegA,
|
||||
|
||||
LiveInterval LiveIntervals::createInterval(unsigned reg) {
|
||||
float Weight = MRegisterInfo::isPhysicalRegister(reg) ?
|
||||
(float)HUGE_VAL :0.0F;
|
||||
(float)HUGE_VAL : 0.0F;
|
||||
return LiveInterval(reg, Weight);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user