diff --git a/lib/Target/X86/X86RegisterInfo.td b/lib/Target/X86/X86RegisterInfo.td index 1d86c0e6437..f0ab68d4c9b 100644 --- a/lib/Target/X86/X86RegisterInfo.td +++ b/lib/Target/X86/X86RegisterInfo.td @@ -61,7 +61,13 @@ let Namespace = "X86" in { // top-level register classes. The order specified in the register list is // implicitly defined to be the register allocation order. // -def R8 : RegisterClass; + +// List AL,CL,DL before AH,CH,DH, as X86 processors often suffer from false +// dependences between upper and lower parts of the register. BL and BH are +// last because they are call clobbered. Both Athlon and P4 chips suffer this +// issue. +def R8 : RegisterClass; + def R16 : RegisterClass { let Methods = [{ iterator allocation_order_end(MachineFunction &MF) const {