mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
Reverse the order of eviction checks for possible compile time savings. No functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dcb0422f25
commit
4dc7377b20
@ -627,6 +627,9 @@ bool RAGreedy::canEvictInterference(LiveInterval &VirtReg, unsigned PhysReg,
|
|||||||
return false;
|
return false;
|
||||||
if (Urgent)
|
if (Urgent)
|
||||||
continue;
|
continue;
|
||||||
|
// Apply the eviction policy for non-urgent evictions.
|
||||||
|
if (!shouldEvict(VirtReg, IsHint, *Intf, BreaksHint))
|
||||||
|
return false;
|
||||||
// If !MaxCost.isMax(), then we're just looking for a cheap register.
|
// If !MaxCost.isMax(), then we're just looking for a cheap register.
|
||||||
// Evicting another local live range in this case could lead to suboptimal
|
// Evicting another local live range in this case could lead to suboptimal
|
||||||
// coloring.
|
// coloring.
|
||||||
@ -634,9 +637,6 @@ bool RAGreedy::canEvictInterference(LiveInterval &VirtReg, unsigned PhysReg,
|
|||||||
!canReassign(*Intf, PhysReg)) {
|
!canReassign(*Intf, PhysReg)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Finally, apply the eviction policy for non-urgent evictions.
|
|
||||||
if (!shouldEvict(VirtReg, IsHint, *Intf, BreaksHint))
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MaxCost = Cost;
|
MaxCost = Cost;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user