summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitc7934b3e37bbe353579987407c7cd7b5f4d38787 (patch)
treeb12a6be3ef6ef3adf2f297e8c40733eb15582031 /llvm/lib
parent9b866051e5bee2aa8e6b65392bc58f0311c3b377 (diff)
downloadbcm5719-llvm-c7934b3e37bbe353579987407c7cd7b5f4d38787.tar.gz
bcm5719-llvm-c7934b3e37bbe353579987407c7cd7b5f4d38787.zip
Down-scale slot index distance to save bits.
llvm-svn: 187438
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 87b11a5f51c..f9e363b9f3a 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud