summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-12-04 22:25:16 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-12-04 22:25:16 +0000
commit3cb2cb800ff6bc19ed4e066af47b0b9994cf13c4 (patch)
treefc12200e74d149b63f9891a913a7d37373cb87a2 /llvm/lib/CodeGen/RegAllocGreedy.cpp
parente71ce976894e809029ba3cb24eb1a60939fdfba6 (diff)
downloadbcm5719-llvm-3cb2cb800ff6bc19ed4e066af47b0b9994cf13c4.tar.gz
bcm5719-llvm-3cb2cb800ff6bc19ed4e066af47b0b9994cf13c4.zip
Speed up the AllocationOrder class a bit.
Allow the central functions to be inlined, and use the argumentless isHint() function when possible. llvm-svn: 169319
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 994264338dd..1884452855b 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -442,7 +442,7 @@ unsigned RAGreedy::tryAssign(LiveInterval &VirtReg,
while ((PhysReg = Order.next()))
if (!Matrix->checkInterference(VirtReg, PhysReg))
break;
- if (!PhysReg || Order.isHint(PhysReg))
+ if (!PhysReg || Order.isHint())
return PhysReg;
// PhysReg is available, but there may be a better choice.
@@ -661,7 +661,7 @@ unsigned RAGreedy::tryEvict(LiveInterval &VirtReg,
BestPhys = PhysReg;
// Stop if the hint can be used.
- if (Order.isHint(PhysReg))
+ if (Order.isHint())
break;
}
OpenPOWER on IntegriCloud