[llvm-commits] [llvm] r69394 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Bill Wendling
isanbard at gmail.com
Fri Apr 17 15:40:38 PDT 2009
Author: void
Date: Fri Apr 17 17:40:38 2009
New Revision: 69394
URL: http://llvm.org/viewvc/llvm-project?rev=69394&view=rev
Log:
Recommit r69335 and r69336. These were not causing problems.
Modified:
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=69394&r1=69393&r2=69394&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Fri Apr 17 17:40:38 2009
@@ -667,6 +667,7 @@
default:
return false;
case X86::MOV8rr:
+ case X86::MOV8rr_NOREX:
case X86::MOV16rr:
case X86::MOV32rr:
case X86::MOV64rr:
@@ -1664,9 +1665,10 @@
} else if (DestRC == &X86::GR16RegClass) {
Opc = X86::MOV16rr;
} else if (DestRC == &X86::GR8RegClass) {
- // Copying two or from a physical H register requires a NOREX move.
- // Otherwise use a normal move.
- if (isHReg(DestReg) || isHReg(SrcReg))
+ // Copying two or from a physical H register on x86-64 requires a NOREX
+ // move. Otherwise use a normal move.
+ if ((isHReg(DestReg) || isHReg(SrcReg)) &&
+ TM.getSubtarget<X86Subtarget>().is64Bit())
Opc = X86::MOV8rr_NOREX;
else
Opc = X86::MOV8rr;
More information about the llvm-commits
mailing list