diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2016-07-06 23:53:10 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2016-07-06 23:53:10 +0000 |
commit | 5c576429715342e1a4a7f6346022bd93f473b8ee (patch) | |
tree | 48a9c4a28bb87559607794068742cad6c601ac45 /gcc/gcse.c | |
parent | 6dbe4c9e2480349578199074b959502b859f7fcc (diff) | |
download | gcc-5c576429715342e1a4a7f6346022bd93f473b8ee.zip gcc-5c576429715342e1a4a7f6346022bd93f473b8ee.tar.gz gcc-5c576429715342e1a4a7f6346022bd93f473b8ee.tar.bz2 |
remove unused loads rtx_insn_list
gcc/ChangeLog:
2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* 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
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -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 |