Commit fb5d4a68 by Jakub Jelinek Committed by Jakub Jelinek

cselib.h (struct elt_loc_list): Remove canon_loc field.

	* cselib.h (struct elt_loc_list): Remove canon_loc field.
	* cselib.c (new_elt_loc_list): Remove canon_loc initialization.
	(cselib_invalidate_mem): Remove all canon_loc and canon_x
	traces.

From-SVN: r81037
parent 228c46db
2004-04-22 Jakub Jelinek <jakub@redhat.com>
* cselib.h (struct elt_loc_list): Remove canon_loc field.
* cselib.c (new_elt_loc_list): Remove canon_loc initialization.
(cselib_invalidate_mem): Remove all canon_loc and canon_x
traces.
2004-04-22 Josef Zlomek <zlomekj@suse.cz> 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
Revert Revert
......
...@@ -157,7 +157,6 @@ new_elt_loc_list (struct elt_loc_list *next, rtx loc) ...@@ -157,7 +157,6 @@ new_elt_loc_list (struct elt_loc_list *next, rtx loc)
el = pool_alloc (elt_loc_list_pool); el = pool_alloc (elt_loc_list_pool);
el->next = next; el->next = next;
el->loc = loc; el->loc = loc;
el->canon_loc = NULL;
el->setting_insn = cselib_current_insn; el->setting_insn = cselib_current_insn;
el->in_libcall = cselib_current_insn_in_libcall; el->in_libcall = cselib_current_insn_in_libcall;
return el; return el;
...@@ -1081,7 +1080,6 @@ cselib_invalidate_mem (rtx mem_rtx) ...@@ -1081,7 +1080,6 @@ cselib_invalidate_mem (rtx mem_rtx)
while (*p) while (*p)
{ {
rtx x = (*p)->loc; rtx x = (*p)->loc;
rtx canon_x = (*p)->canon_loc;
cselib_val *addr; cselib_val *addr;
struct elt_list **mem_chain; struct elt_list **mem_chain;
...@@ -1092,8 +1090,6 @@ cselib_invalidate_mem (rtx mem_rtx) ...@@ -1092,8 +1090,6 @@ cselib_invalidate_mem (rtx mem_rtx)
p = &(*p)->next; p = &(*p)->next;
continue; continue;
} }
if (!canon_x)
canon_x = (*p)->canon_loc = canon_rtx (x);
if (num_mems < PARAM_VALUE (PARAM_MAX_CSELIB_MEMORY_LOCATIONS) if (num_mems < PARAM_VALUE (PARAM_MAX_CSELIB_MEMORY_LOCATIONS)
&& ! canon_true_dependence (mem_rtx, GET_MODE (mem_rtx), mem_addr, && ! canon_true_dependence (mem_rtx, GET_MODE (mem_rtx), mem_addr,
x, cselib_rtx_varies_p)) x, cselib_rtx_varies_p))
......
...@@ -49,7 +49,6 @@ struct elt_loc_list GTY(()) ...@@ -49,7 +49,6 @@ struct elt_loc_list GTY(())
struct elt_loc_list *next; struct elt_loc_list *next;
/* An rtl expression that holds the value. */ /* An rtl expression that holds the value. */
rtx loc; rtx loc;
rtx canon_loc;
/* The insn that made the equivalence. */ /* The insn that made the equivalence. */
rtx setting_insn; rtx setting_insn;
/* True when setting insn is inside libcall. */ /* True when setting insn is inside libcall. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment