summaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-05-22 11:52:19 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-05-22 11:52:19 +0000
commitfa70c22141f5075ad4a9a3a6630f083c92755799 (patch)
treeafc708401f7b33651371ed0a0acb4844cef27279 /gcc/alias.c
parenta6149853c3b57be410fa3316448532f609300aa8 (diff)
alias.c (ao_ref_from_mem): Move stack-slot sharing rewrite ...
2019-05-22 Richard Biener <rguenther@suse.de> * alias.c (ao_ref_from_mem): Move stack-slot sharing rewrite ... * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here. From-SVN: r271510
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index b64e3ea264d..d3cc07c7216 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -307,18 +307,6 @@ ao_ref_from_mem (ao_ref *ref, const_rtx mem)
&& TREE_CODE (TMR_BASE (base)) == SSA_NAME)))
return false;
- /* If this is a reference based on a partitioned decl replace the
- base with a MEM_REF of the pointer representative we
- created during stack slot partitioning. */
- if (VAR_P (base)
- && ! is_global_var (base)
- && cfun->gimple_df->decls_to_pointers != NULL)
- {
- tree *namep = cfun->gimple_df->decls_to_pointers->get (base);
- if (namep)
- ref->base = build_simple_mem_ref (*namep);
- }
-
ref->ref_alias_set = MEM_ALIAS_SET (mem);
/* If MEM_OFFSET or MEM_SIZE are unknown what we got from MEM_EXPR