Author: evancheng
Date: Tue Oct  9 18:36:27 2007
New Revision: 42820

URL: http://llvm.org/viewvc/llvm-project?rev=42820&view=rev
Log:
Fix an extremely stupid bug that prevented first round of coalescing (physical 
registers only) from happening.

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

Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: 
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=42820&r1=42819&r2=42820&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Tue Oct  9 18:36:27 2007
@@ -861,7 +861,8 @@
     unsigned SrcReg, DstReg;
     if (!tii_->isMoveInstr(*Inst, SrcReg, DstReg)) continue;
     
-    if (TryAgain && !JoinCopy(Inst, SrcReg, DstReg, PhysOnly))
+    bool Success = JoinCopy(Inst, SrcReg, DstReg, PhysOnly);
+    if (TryAgain && !Success)
       TryAgain->push_back(getCopyRec(Inst, SrcReg, DstReg));
   }
 }


_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to