Prevented reg0 from being added to MBB live-in set, which was causing issues
authorLang Hames <lhames@gmail.com>
Sun, 17 May 2009 23:50:36 +0000 (23:50 +0000)
committerLang Hames <lhames@gmail.com>
Sun, 17 May 2009 23:50:36 +0000 (23:50 +0000)
for PostRAScheduler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71991 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocPBQP.cpp

index 9b2c92c13e505dcac8cb90180abceb4d78adf043..6bad2db44d1260c5c74b92c7a58e6fb5c53d3866 100644 (file)
@@ -765,6 +765,11 @@ void PBQPRegAlloc::finalizeAlloc() const {
       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) {