aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-04-22 19:47:47 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2004-04-22 19:47:47 +0200
commitfb5d4a68e56b14b24f36a530abfd4eb44c366435 (patch)
tree2e8bb0287ec9921b9ed7aa6e54c57396dec983a6
parent228c46dbd82c6544a12b4ce436c22638d779f201 (diff)
downloadgcc-fb5d4a68e56b14b24f36a530abfd4eb44c366435.zip
gcc-fb5d4a68e56b14b24f36a530abfd4eb44c366435.tar.gz
gcc-fb5d4a68e56b14b24f36a530abfd4eb44c366435.tar.bz2
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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/cselib.c4
-rw-r--r--gcc/cselib.h1
3 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ad91d66..acde505 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+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>
Revert
diff --git a/gcc/cselib.c b/gcc/cselib.c
index 0dfb1a6..9d738df 100644
--- a/gcc/cselib.c
+++ b/gcc/cselib.c
@@ -157,7 +157,6 @@ new_elt_loc_list (struct elt_loc_list *next, rtx loc)
el = pool_alloc (elt_loc_list_pool);
el->next = next;
el->loc = loc;
- el->canon_loc = NULL;
el->setting_insn = cselib_current_insn;
el->in_libcall = cselib_current_insn_in_libcall;
return el;
@@ -1081,7 +1080,6 @@ cselib_invalidate_mem (rtx mem_rtx)
while (*p)
{
rtx x = (*p)->loc;
- rtx canon_x = (*p)->canon_loc;
cselib_val *addr;
struct elt_list **mem_chain;
@@ -1092,8 +1090,6 @@ cselib_invalidate_mem (rtx mem_rtx)
p = &(*p)->next;
continue;
}
- if (!canon_x)
- canon_x = (*p)->canon_loc = canon_rtx (x);
if (num_mems < PARAM_VALUE (PARAM_MAX_CSELIB_MEMORY_LOCATIONS)
&& ! canon_true_dependence (mem_rtx, GET_MODE (mem_rtx), mem_addr,
x, cselib_rtx_varies_p))
diff --git a/gcc/cselib.h b/gcc/cselib.h
index 1efbaa7..b529060 100644
--- a/gcc/cselib.h
+++ b/gcc/cselib.h
@@ -49,7 +49,6 @@ struct elt_loc_list GTY(())
struct elt_loc_list *next;
/* An rtl expression that holds the value. */
rtx loc;
- rtx canon_loc;
/* The insn that made the equivalence. */
rtx setting_insn;
/* True when setting insn is inside libcall. */