[llvm-commits] [llvm] r43065 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp

Evan Cheng evan.cheng at apple.com
Tue Oct 16 22:29:38 PDT 2007


Author: evancheng
Date: Wed Oct 17 00:29:37 2007
New Revision: 43065

URL: http://llvm.org/viewvc/llvm-project?rev=43065&view=rev
Log:
One more extract_subreg coalescing bug fix.

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=43065&r1=43064&r2=43065&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Wed Oct 17 00:29:37 2007
@@ -236,7 +236,7 @@
       // If this is a extract_subreg where dst is a physical register, e.g.
       // cl = EXTRACT_SUBREG reg1024, 1
       // then create and update the actual physical register allocated to RHS.
-      const TargetRegisterClass *RC = mf_->getSSARegMap()->getRegClass(SrcReg);
+      const TargetRegisterClass *RC=mf_->getSSARegMap()->getRegClass(repSrcReg);
       for (const unsigned *SRs = mri_->getSuperRegisters(repDstReg);
            unsigned SR = *SRs; ++SRs) {
         if (repDstReg == mri_->getSubReg(SR, SubIdx) &&





More information about the llvm-commits mailing list