[llvm-commits] [llvm] r126277 - /llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Feb 22 16:29:55 PST 2011


Author: stoklund
Date: Tue Feb 22 18:29:55 2011
New Revision: 126277

URL: http://llvm.org/viewvc/llvm-project?rev=126277&view=rev
Log:
Fix a bug in determining if there is only a single interfering register.

Modified:
    llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp

Modified: llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp?rev=126277&r1=126276&r2=126277&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp Tue Feb 22 18:29:55 2011
@@ -240,8 +240,7 @@
     if (Q.checkInterference()) {
       if (Interference)
         return 0;
-      Q.collectInterferingVRegs(1);
-      if (!Q.seenAllInterferences())
+      if (Q.collectInterferingVRegs(2) > 1)
         return 0;
       Interference = Q.interferingVRegs().front();
     }





More information about the llvm-commits mailing list