diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-25 01:04:22 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-25 01:04:22 +0000 |
commit | 9918b334514d8d09644682a7af0e1b1e0c4eb894 (patch) | |
tree | c1da680d434d1c3de6a7db7e135b999820fa2d4b /llvm/lib/CodeGen/AllocationOrder.h | |
parent | 0c68ed006d4f38c3cdcab6a565aa3e208015895f (diff) | |
download | bcm5719-llvm-9918b334514d8d09644682a7af0e1b1e0c4eb894.tar.gz bcm5719-llvm-9918b334514d8d09644682a7af0e1b1e0c4eb894.zip |
Try harder to get the hint by preferring to evict hint interference.
llvm-svn: 126463
Diffstat (limited to 'llvm/lib/CodeGen/AllocationOrder.h')
-rw-r--r-- | llvm/lib/CodeGen/AllocationOrder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AllocationOrder.h b/llvm/lib/CodeGen/AllocationOrder.h index 3db4b6925fc..61fd8f881a8 100644 --- a/llvm/lib/CodeGen/AllocationOrder.h +++ b/llvm/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 |