From: Alan Modra Date: Fri, 5 Aug 2016 01:29:05 +0000 (+0930) Subject: [RS6000] rs6000_preferred_reload_class X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ffedfee02df8cf8123b4fe756bdd1f820c6fa47;p=gcc.git [RS6000] rs6000_preferred_reload_class * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete code accidentally committed 2016-05-02 providing class when given NO_REGS. From-SVN: r239161 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 83bdb1af708..30ef9f36a7d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-08-05 Alan Modra + + * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete + code accidentally committed 2016-05-02 providing class when given + NO_REGS. + 2016-08-04 Patrick Palka * tree-vrp.c (simplify_switch_using_ranges): Try to truncate @@ -15603,7 +15609,7 @@ 2016-02-14 Alan Modra PR target/68973 - * reloads.c (find_reloads_address_1): For pre/post-inc/dec + * reload.c (find_reloads_address_1): For pre/post-inc/dec with an invalid hard reg, reload just the reg not the entire pre/post-inc/dec address expression. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index a8aa9d19a43..779ba1fb002 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -20407,25 +20407,6 @@ rs6000_preferred_reload_class (rtx x, enum reg_class rclass) return NO_REGS; } - /* If we haven't picked a register class, and the type is a vector or - floating point type, prefer to use the VSX, FPR, or Altivec register - classes. */ - if (rclass == NO_REGS) - { - if (TARGET_VSX && VECTOR_MEM_VSX_OR_P8_VECTOR_P (mode)) - return VSX_REGS; - - if (TARGET_ALTIVEC && VECTOR_MEM_ALTIVEC_P (mode)) - return ALTIVEC_REGS; - - if (DECIMAL_FLOAT_MODE_P (mode)) - return TARGET_DFP ? FLOAT_REGS : NO_REGS; - - if (TARGET_FPRS && TARGET_HARD_FLOAT && FLOAT_MODE_P (mode) - && (reg_addr[mode].addr_mask[RELOAD_REG_FPR] & RELOAD_REG_VALID) == 0) - return FLOAT_REGS; - } - if (GET_MODE_CLASS (mode) == MODE_INT && rclass == NON_SPECIAL_REGS) return GENERAL_REGS;