Prevented reg0 from being added to MBB live-in set, which was causing issues

for PostRAScheduler. 


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71991 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2009-05-17 23:50:36 +00:00
parent de67a51b66
commit b0e519f2bf

View 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) {