mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
Try harder to get the hint by preferring to evict hint interference.
llvm-svn: 126463
This commit is contained in:
parent
fbdcea4b2e
commit
9d328484ce
@ -47,6 +47,8 @@ public:
|
||||
/// rewind - Start over from the beginning.
|
||||
void rewind() { Pos = 0; }
|
||||
|
||||
/// isHint - Return true if PhysReg is a preferred register.
|
||||
bool isHint(unsigned PhysReg) const { return PhysReg == Hint; }
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
@ -379,6 +379,9 @@ unsigned RAGreedy::tryEvict(LiveInterval &VirtReg,
|
||||
// Best so far.
|
||||
BestPhys = PhysReg;
|
||||
BestWeight = Weight;
|
||||
// Stop if the hint can be used.
|
||||
if (Order.isHint(PhysReg))
|
||||
break;
|
||||
}
|
||||
|
||||
if (!BestPhys)
|
||||
|
Loading…
Reference in New Issue
Block a user