diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-09-27 21:50:05 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-09-27 21:50:05 +0000 |
commit | 3f2d9ec186ce25b19bb36ae54eaee025150058fd (patch) | |
tree | b8e9eee4fb05be7a80062a16d4d1de5e20034597 /lib | |
parent | d9900c9442d48b73bc5bb6132abcb9bc0257c714 (diff) | |
download | external_llvm-3f2d9ec186ce25b19bb36ae54eaee025150058fd.zip external_llvm-3f2d9ec186ce25b19bb36ae54eaee025150058fd.tar.gz external_llvm-3f2d9ec186ce25b19bb36ae54eaee025150058fd.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.cpp | 5 |
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; } |