From: Trevor Saunders Date: Wed, 6 Jul 2016 23:53:10 +0000 (+0000) Subject: remove unused loads rtx_insn_list X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c576429715342e1a4a7f6346022bd93f473b8ee;p=gcc.git remove unused loads rtx_insn_list gcc/ChangeLog: 2016-07-06 Trevor Saunders * gcse.c (struct ls_expr): Remove loads field. (ldst_entry): Adjust. (free_ldst_entry): Likewise. (print_ldst_list): Likewise. (compute_ld_motion_mems): Likewise. From-SVN: r238064 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0ff7faeb84..0fabfc61e75 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2016-07-06 Trevor Saunders + + * gcse.c (struct ls_expr): Remove loads field. + (ldst_entry): Adjust. + (free_ldst_entry): Likewise. + (print_ldst_list): Likewise. + (compute_ld_motion_mems): Likewise. + 2016-07-06 Trevor Saunders * store-motion.c (struct st_expr): Make antic_stores a vector. diff --git a/gcc/gcse.c b/gcc/gcse.c index a3a7dc31353..127a65a871d 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -342,7 +342,6 @@ struct ls_expr struct gcse_expr * expr; /* Gcse expression reference for LM. */ rtx pattern; /* Pattern of this mem. */ rtx pattern_regs; /* List of registers mentioned by the mem. */ - rtx_insn_list *loads; /* INSN list of loads seen. */ rtx_insn_list *stores; /* INSN list of stores seen. */ struct ls_expr * next; /* Next in the list. */ int invalid; /* Invalid for some reason. */ @@ -3605,7 +3604,6 @@ ldst_entry (rtx x) ptr->expr = NULL; ptr->pattern = x; ptr->pattern_regs = NULL_RTX; - ptr->loads = NULL; ptr->stores = NULL; ptr->reaching_reg = NULL_RTX; ptr->invalid = 0; @@ -3622,7 +3620,6 @@ ldst_entry (rtx x) static void free_ldst_entry (struct ls_expr * ptr) { - free_INSN_LIST_list (& ptr->loads); free_INSN_LIST_list (& ptr->stores); free (ptr); @@ -3663,13 +3660,6 @@ print_ldst_list (FILE * file) print_rtl (file, ptr->pattern); - fprintf (file, "\n Loads : "); - - if (ptr->loads) - print_rtl (file, ptr->loads); - else - fprintf (file, "(nil)"); - fprintf (file, "\n Stores : "); if (ptr->stores) @@ -3801,9 +3791,7 @@ compute_ld_motion_mems (void) if (MEM_P (src) && simple_mem (src)) { ptr = ldst_entry (src); - if (REG_P (dest)) - ptr->loads = alloc_INSN_LIST (insn, ptr->loads); - else + if (!REG_P (dest)) ptr->invalid = 1; } else