[llvm-commits] [llvm] r115906 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Eric Christopher echristo at apple.com
Wed Oct 6 22:39:20 PDT 2010


Author: echristo
Date: Thu Oct  7 00:39:19 2010
New Revision: 115906

URL: http://llvm.org/viewvc/llvm-project?rev=115906&view=rev
Log:
Use the correct register class here.

Modified:
    llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=115906&r1=115905&r2=115906&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Thu Oct  7 00:39:19 2010
@@ -943,7 +943,9 @@
   // Now set a register based on the comparison. Explicitly set the predicates
   // here.
   unsigned MovCCOpc = isThumb ? ARM::t2MOVCCi : ARM::MOVCCi;
-  unsigned DestReg = createResultReg(ARM::GPRRegisterClass);
+  TargetRegisterClass *RC = isThumb ? ARM::rGPRRegisterClass 
+                                    : ARM::GPRRegisterClass;
+  unsigned DestReg = createResultReg(RC);
   Constant *Zero 
     = ConstantInt::get(Type::getInt32Ty(*Context), 0);
   unsigned ZeroReg = TargetMaterializeConstant(Zero);





More information about the llvm-commits mailing list