[llvm-commits] [llvm] r156327 - /llvm/trunk/lib/Target/TargetRegisterInfo.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon May 7 14:59:31 PDT 2012


Author: stoklund
Date: Mon May  7 16:59:31 2012
New Revision: 156327

URL: http://llvm.org/viewvc/llvm-project?rev=156327&view=rev
Log:
Fix bug in TRI::getCommonSuperRegClass().

Test cases for this code are coming. It is not used for anything yet.

Modified:
    llvm/trunk/lib/Target/TargetRegisterInfo.cpp

Modified: llvm/trunk/lib/Target/TargetRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetRegisterInfo.cpp?rev=156327&r1=156326&r2=156327&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetRegisterInfo.cpp Mon May  7 16:59:31 2012
@@ -207,6 +207,7 @@
   unsigned *BestPreB = &PreB;
   if (RCA->getSize() < RCB->getSize()) {
     std::swap(RCA, RCB);
+    std::swap(SubA, SubB);
     std::swap(BestPreA, BestPreB);
   }
 





More information about the llvm-commits mailing list