diff options
| author | Lang Hames <lhames@gmail.com> | 2009-05-17 23:50:36 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2009-05-17 23:50:36 +0000 |
| commit | 4030d8122da9ac6381bd6f06bf2b2550937472a9 (patch) | |
| tree | 9b9a3403285414f1ffb02d01d2c80ef5110c0d6c /llvm/lib/CodeGen | |
| parent | ee13926fbe312a5bc437a5945ad7bd0141daa6dc (diff) | |
| download | bcm5719-llvm-4030d8122da9ac6381bd6f06bf2b2550937472a9.tar.gz bcm5719-llvm-4030d8122da9ac6381bd6f06bf2b2550937472a9.zip | |
Prevented reg0 from being added to MBB live-in set, which was causing issues
for PostRAScheduler.
llvm-svn: 71991
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocPBQP.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocPBQP.cpp b/llvm/lib/CodeGen/RegAllocPBQP.cpp index 9b2c92c13e5..6bad2db44d1 100644 --- a/llvm/lib/CodeGen/RegAllocPBQP.cpp +++ b/llvm/lib/CodeGen/RegAllocPBQP.cpp @@ -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) { |

