[llvm-commits] [llvm] r69108 - /llvm/trunk/lib/Target/X86/X86RegisterInfo.td

Dan Gohman gohman at apple.com
Tue Apr 14 17:00:48 PDT 2009


Author: djg
Date: Tue Apr 14 19:00:48 2009
New Revision: 69108

URL: http://llvm.org/viewvc/llvm-project?rev=69108&view=rev
Log:
GR8_NOREX can contain the H registers, since they don't require
REX prefixes.

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

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

==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.td Tue Apr 14 19:00:48 2009
@@ -483,7 +483,8 @@
 // On x86-64, GR64_NOREX, GR32_NOREX and GR16_NOREX are the classes
 // of registers which do not by themselves require a REX prefix.
 def GR8_NOREX : RegisterClass<"X86", [i8], 8,
-                              [AL, CL, DL, SIL, DIL, BL, BPL, SPL]> {
+                              [AL, CL, DL, BL, AH, CH, DH, BH,
+                               SIL, DIL, BPL, SPL]> {
   let MethodProtos = [{
     iterator allocation_order_begin(const MachineFunction &MF) const;
     iterator allocation_order_end(const MachineFunction &MF) const;
@@ -500,7 +501,7 @@
     };
     // In 32-mode, none of the 8-bit registers aliases EBP or ESP.
     static const unsigned X86_GR8_NOREX_AO_32[] = {
-      X86::AL, X86::CL, X86::DL, X86::BL
+      X86::AL, X86::CL, X86::DL, X86::AH, X86::CH, X86::DH, X86::BL, X86::BH
     };
 
     GR8_NOREXClass::iterator





More information about the llvm-commits mailing list