RegAllocGreedy comment.

llvm-svn: 187141
This commit is contained in:
Andrew Trick 2013-07-25 18:35:22 +00:00
parent 8bb0a251fd
commit f4b1ee3492
1 changed files with 2 additions and 1 deletions

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));
}