diff options
author | Andrew Trick <atrick@apple.com> | 2010-12-09 18:15:21 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2010-12-09 18:15:21 +0000 |
commit | b853e6c3702149cdbbd6fa404334e3ba0055641a (patch) | |
tree | 2daa08a7cd8703e8d397588a903545c4dfb965d9 /lib/CodeGen/RegAllocBase.h | |
parent | f2f516fc2680168caac9981a4dd17cc37c639c71 (diff) | |
download | llvm-b853e6c3702149cdbbd6fa404334e3ba0055641a.tar.gz llvm-b853e6c3702149cdbbd6fa404334e3ba0055641a.tar.bz2 llvm-b853e6c3702149cdbbd6fa404334e3ba0055641a.tar.xz |
Added register reassignment prototype to RAGreedy. It's a simple
heuristic to reshuffle register assignments when we can't find an
available reg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocBase.h')
-rw-r--r-- | lib/CodeGen/RegAllocBase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocBase.h b/lib/CodeGen/RegAllocBase.h index 65bec06c71..71c3faf765 100644 --- a/lib/CodeGen/RegAllocBase.h +++ b/lib/CodeGen/RegAllocBase.h @@ -58,8 +58,8 @@ class LiveVirtRegQueue; /// be extended to add interesting heuristics. /// /// Register allocators must override the selectOrSplit() method to implement -/// live range splitting. LessSpillWeightPriority is provided as a standard -/// comparator, but we may add an interface to override it if necessary. +/// live range splitting. They may also override getPriority() which otherwise +/// defaults to the spill weight computed by CalculateSpillWeights. class RegAllocBase { LiveIntervalUnion::Allocator UnionAllocator; protected: |