diff options
author | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2013-12-05 21:18:40 +0000 |
---|---|---|
committer | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2013-12-05 21:18:40 +0000 |
commit | 226e3eab9bb39e6b73122c26532cfa8242eb6d4e (patch) | |
tree | c52333378fe1e9ec2ecea9d16075602d051701a3 /lib/CodeGen/RegAllocGreedy.cpp | |
parent | 32cbcf22958b7f7d214348b0fe5c48bf7b64eada (diff) | |
download | llvm-226e3eab9bb39e6b73122c26532cfa8242eb6d4e.tar.gz llvm-226e3eab9bb39e6b73122c26532cfa8242eb6d4e.tar.bz2 llvm-226e3eab9bb39e6b73122c26532cfa8242eb6d4e.tar.xz |
Check hint registers for interference only once before evictions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocGreedy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index 3a02aaec34..7ddc4d5ad8 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -723,7 +723,7 @@ unsigned RAGreedy::tryEvict(LiveInterval &VirtReg, } Order.rewind(); - while (unsigned PhysReg = Order.nextWithDups(OrderLimit)) { + while (unsigned PhysReg = Order.next(OrderLimit)) { if (TRI->getCostPerUse(PhysReg) >= CostPerUseLimit) continue; // The first use of a callee-saved register in a function has cost 1. |