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 | b0e519f2bf201d96d304cb9fd330a5e1b38536fe (patch) | |
tree | 8d166ada7c48c08a40a1e95cceae524a7d14374a /lib/CodeGen/RegAllocPBQP.cpp | |
parent | de67a51b66964e95df05cd2192c05c77dccfa4c9 (diff) | |
download | external_llvm-b0e519f2bf201d96d304cb9fd330a5e1b38536fe.zip external_llvm-b0e519f2bf201d96d304cb9fd330a5e1b38536fe.tar.gz external_llvm-b0e519f2bf201d96d304cb9fd330a5e1b38536fe.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen/RegAllocPBQP.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocPBQP.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 9b2c92c..6bad2db 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/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) { |