commit | bef4c3e069a66c8b2d5871468cb57978f44ddc54 | [log] [tgz] |
---|---|---|
author | Andrew Trick <atrick@apple.com> | Thu Jul 25 18:35:22 2013 +0000 |
committer | Andrew Trick <atrick@apple.com> | Thu Jul 25 18:35:22 2013 +0000 |
tree | 7f02673ce94d01aa0bbf81673ad7b485468ef0d4 | |
parent | 8adae96fd905daa8835b6fde5e74e25d818c7471 [diff] [blame] |
RegAllocGreedy comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187141 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index 7925371..87b11a5 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -434,7 +434,8 @@ 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)); }