From 3f2d9ec186ce25b19bb36ae54eaee025150058fd Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 27 Sep 2007 21:50:05 +0000 Subject: [PATCH] Use GR64 in 64-bit mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42417 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86RegisterInfo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index fdb259cd0e6..5607cad09b3 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; }