[llvm-commits] [llvm] r71991 - /llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp
Lang Hames
lhames at gmail.com
Sun May 17 16:50:37 PDT 2009
Author: lhames
Date: Sun May 17 18:50:36 2009
New Revision: 71991
URL: http://llvm.org/viewvc/llvm-project?rev=71991&view=rev
Log:
Prevented reg0 from being added to MBB live-in set, which was causing issues
for PostRAScheduler.
Modified:
llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp?rev=71991&r1=71990&r2=71991&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocPBQP.cpp Sun May 17 18:50:36 2009
@@ -765,6 +765,11 @@
continue;
}
+ // Ignore unallocated vregs:
+ if (reg == 0) {
+ continue;
+ }
+
// Iterate over the ranges of the current interval...
for (LRIterator lrItr = li->begin(), lrEnd = li->end();
lrItr != lrEnd; ++lrItr) {
More information about the llvm-commits
mailing list