diff options
author | Andrew Trick <atrick@apple.com> | 2013-07-25 18:35:22 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-07-25 18:35:22 +0000 |
commit | f4b1ee3492c7518a706235645c28ce3111f05f58 (patch) | |
tree | 6f3ea0a0e83cfab9a7014e63f211bc2a8ac71b4e /llvm/lib/CodeGen | |
parent | 8bb0a251fdab0111f5438d17de42270331c7ad55 (diff) | |
download | bcm5719-llvm-f4b1ee3492c7518a706235645c28ce3111f05f58.tar.gz bcm5719-llvm-f4b1ee3492c7518a706235645c28ce3111f05f58.zip |
RegAllocGreedy comment.
llvm-svn: 187141
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index 79253715c33..87b11a5f51c 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -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)); } |