diff options
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocGreedy.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index 03d1372c2f..406485aaf4 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -379,6 +379,9 @@ unsigned RAGreedy::tryEvict(LiveInterval &VirtReg, // Best so far. BestPhys = PhysReg; BestWeight = Weight; + // Stop if the hint can be used. + if (Order.isHint(PhysReg)) + break; } if (!BestPhys) |