aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-09-27 21:50:05 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-09-27 21:50:05 +0000
commitc7fde8a801cb5aa83391f7bdf9bea9677abf0f7f (patch)
treeb8e9eee4fb05be7a80062a16d4d1de5e20034597 /lib
parent3271e5aea340b1beb0953ce04cfc90791fc26dbf (diff)
downloadexternal_llvm-c7fde8a801cb5aa83391f7bdf9bea9677abf0f7f.zip
external_llvm-c7fde8a801cb5aa83391f7bdf9bea9677abf0f7f.tar.gz
external_llvm-c7fde8a801cb5aa83391f7bdf9bea9677abf0f7f.tar.bz2
Use GR64 in 64-bit mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86RegisterInfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp
index fdb259c..5607cad 100644
--- a/lib/Target/X86/X86RegisterInfo.cpp
+++ b/lib/Target/X86/X86RegisterInfo.cpp
@@ -299,7 +299,10 @@ void X86RegisterInfo::copyRegToReg(MachineBasicBlock &MBB,
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;
}