mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Check hint registers for interference only once before evictions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -723,7 +723,7 @@ unsigned RAGreedy::tryEvict(LiveInterval &VirtReg,
|
||||
}
|
||||
|
||||
Order.rewind();
|
||||
while (unsigned PhysReg = Order.nextWithDups(OrderLimit)) {
|
||||
while (unsigned PhysReg = Order.next(OrderLimit)) {
|
||||
if (TRI->getCostPerUse(PhysReg) >= CostPerUseLimit)
|
||||
continue;
|
||||
// The first use of a callee-saved register in a function has cost 1.
|
||||
|
Reference in New Issue
Block a user