From 7ffedfee02df8cf8123b4fe756bdd1f820c6fa47 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 5 Aug 2016 10:59:05 +0930 Subject: [PATCH] [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 --- gcc/ChangeLog | 8 +++++++- gcc/config/rs6000/rs6000.c | 19 ------------------- 2 files changed, 7 insertions(+), 20 deletions(-) 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; -- 2.30.2