[llvm-commits] [llvm] r42417 - /llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp

Evan Cheng evan.cheng at apple.com
Thu Sep 27 14:50:05 PDT 2007


Author: evancheng
Date: Thu Sep 27 16:50:05 2007
New Revision: 42417

URL: http://llvm.org/viewvc/llvm-project?rev=42417&view=rev
Log:
Use GR64 in 64-bit mode.

Modified:
    llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp

Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp?rev=42417&r1=42416&r2=42417&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp Thu Sep 27 16:50:05 2007
@@ -299,7 +299,10 @@
 const TargetRegisterClass *
 X86RegisterInfo::getCrossCopyRegClass(const TargetRegisterClass *RC) const {
   if (RC == &X86::CCRRegClass)
-    return &X86::GR32RegClass;
+    if (Is64Bit)
+      return &X86::GR64RegClass;
+    else
+      return &X86::GR32RegClass;
   return NULL;
 }
 





More information about the llvm-commits mailing list