1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

RegAllocGreedy comment.

llvm-svn: 187141
This commit is contained in:
Andrew Trick 2013-07-25 18:35:22 +00:00
parent 7b0a985247
commit f3982a902a

View File

@ -434,7 +434,8 @@ void RAGreedy::enqueue(LiveInterval *LI) {
if (VRM->hasKnownPreference(Reg))
Prio |= (1u << 30);
}
// The virtual register number is a tie breaker for same-sized ranges.
// Give lower vreg numbers higher priority to assign them first.
Queue.push(std::make_pair(Prio, ~Reg));
}