mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Add VirtRegMap::hasKnownPreference().
Virtual registers with a known preferred register are prioritized by RAGreedy. This function makes the condition explicit without depending on getRegAllocPref(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -413,7 +413,7 @@ void RAGreedy::enqueue(LiveInterval *LI) {
|
||||
Prio = (1u << 31) + Size;
|
||||
|
||||
// Boost ranges that have a physical register hint.
|
||||
if (TargetRegisterInfo::isPhysicalRegister(VRM->getRegAllocPref(Reg)))
|
||||
if (VRM->hasKnownPreference(Reg))
|
||||
Prio |= (1u << 30);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user