summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AllocationOrder.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-25 01:04:22 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-25 01:04:22 +0000
commit57f1e2cee06f9b57995727d786aeb1031c5376bd (patch)
treefb5767fa8f40572259156bee80fa8a4fd5af421b /lib/CodeGen/AllocationOrder.h
parentacca09bd64080393a047204eafad46e2fc34ee68 (diff)
downloadllvm-57f1e2cee06f9b57995727d786aeb1031c5376bd.tar.gz
llvm-57f1e2cee06f9b57995727d786aeb1031c5376bd.tar.bz2
llvm-57f1e2cee06f9b57995727d786aeb1031c5376bd.tar.xz
Try harder to get the hint by preferring to evict hint interference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AllocationOrder.h')
-rw-r--r--lib/CodeGen/AllocationOrder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AllocationOrder.h b/lib/CodeGen/AllocationOrder.h
index 3db4b6925f..61fd8f881a 100644
--- a/lib/CodeGen/AllocationOrder.h
+++ b/lib/CodeGen/AllocationOrder.h
@@ -47,6 +47,8 @@ public:
/// rewind - Start over from the beginning.
void rewind() { Pos = 0; }
+ /// isHint - Return true if PhysReg is a preferred register.
+ bool isHint(unsigned PhysReg) const { return PhysReg == Hint; }
};
} // end namespace llvm