summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-07-30 19:59:19 +0000
committerAndrew Trick <atrick@apple.com>2013-07-30 19:59:19 +0000
commitc0173e6f9f0de4497cd9b52b4f2269a57846f2ac (patch)
tree75a16b946f1b843b9c2cfbbccf55d5cddc94ad82 /lib/CodeGen/RegAllocGreedy.cpp
parentc0c9205811a6957ab04ebe4a0fc84f3563b0c9da (diff)
downloadllvm-c0173e6f9f0de4497cd9b52b4f2269a57846f2ac.tar.gz
llvm-c0173e6f9f0de4497cd9b52b4f2269a57846f2ac.tar.bz2
llvm-c0173e6f9f0de4497cd9b52b4f2269a57846f2ac.tar.xz
Down-scale slot index distance to save bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index 87b11a5f51..f9e363b9f3 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -419,7 +419,7 @@ void RAGreedy::enqueue(LiveInterval *LI) {
// Allocate original local ranges in linear instruction order. Since they
// are singly defined, this produces optimal coloring in the absence of
// global interference and other constraints.
- Prio = LI->beginIndex().distance(Indexes->getLastIndex());
+ Prio = LI->beginIndex().getInstrDistance(Indexes->getLastIndex());
}
else {
// Allocate global and split ranges in long->short order. Long ranges that