[PATCH] RegAllocGreedy: Improve live interval order in ReverseLocal mode
Phabricator
reviews at reviews.llvm.org
Tue Mar 31 13:00:45 PDT 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8625
Files:
llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
Index: llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
+++ llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
@@ -552,7 +552,7 @@
// Allocating bottom up may allow many short LRGs to be assigned first
// to one of the cheap registers. This could be much faster for very
// large blocks on targets with many physical registers.
- Prio = Indexes->getZeroIndex().getInstrDistance(LI->beginIndex());
+ Prio = Indexes->getZeroIndex().getInstrDistance(LI->endIndex());
}
}
else {
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8625.22997.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150331/8f4b4191/attachment.bin>
More information about the llvm-commits
mailing list