Comments
Patch
gcc/
* config/arm/arm.h (PREFERRED_RENAME_CLASS): New macro.
@@ -1306,6 +1306,11 @@ enum reg_class
#define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P \
arm_small_register_classes_for_mode_p
+#define PREFERRED_RENAME_CLASS(CLASS) \
+ (TARGET_THUMB2 ? ((CLASS) == GENERAL_REGS \
+ ? LO_REGS : (CLASS)) \
+ : (CLASS))
+
/* Given an rtx X being reloaded into a reg required to be
in class CLASS, return the class of reg to actually use.
In general this is just CLASS, but for the Thumb core registers and