diff options
author | Richard Guenther <rguenther@suse.de> | 2010-08-12 10:36:08 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-08-12 10:36:08 +0000 |
commit | 1be38ccb1b4a2208403ffe980073d6ed2bb61490 (patch) | |
tree | 9a3a2a1cd2ab3e673bfae829eadbac8146e824a5 /gcc/tree-ssa-alias.c | |
parent | a96ad3486e4f3a949bcfccf5aecbd1b5e35c5307 (diff) | |
download | gcc-1be38ccb1b4a2208403ffe980073d6ed2bb61490.tar.gz |
tree-flow.h (struct ptr_info_def): Add align and misalign fields.
2010-08-12 Richard Guenther <rguenther@suse.de>
* tree-flow.h (struct ptr_info_def): Add align and misalign fields.
* tree-ssa-alias.c (get_ptr_info): Move ...
* tree-ssanames.c (get_ptr_info): ... here. Initialize
align and misalign fields conservatively.
* tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
derive alignment information.
(evaluate_stmt): Derive alignment information from memory
allocation functions.
* tree.h (get_pointer_alignment): Make unsigned.
* builtins.c (get_object_alignment): Use alignment information we
have computed for pointers.
(get_pointer_alignment): Likewise. Make conservative, return
and unsigned value.
(expand_builtin_strlen): Adjust.
(expand_builtin_memcmp): Likewise.
(expand_builtin_strcmp): Likewise.
(expand_builtin_strncmp): Likewise.
(get_builtin_sync_mem): Use at least mode alignment.
(fold_builtin_memset): Adjust.
(fold_builtin_memory_op): Likewise.
* gimple-pretty-print.c (dump_gimple_phi): Alongside alias
information also dump pointer alignment knowledge.
(dump_gimple_stmt): Likewise.
From-SVN: r163189
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r-- | gcc/tree-ssa-alias.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index a95d78caca1..eddb9b987c3 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -368,27 +368,6 @@ debug_alias_info (void) } -/* Return the alias information associated with pointer T. It creates a - new instance if none existed. */ - -struct ptr_info_def * -get_ptr_info (tree t) -{ - struct ptr_info_def *pi; - - gcc_assert (POINTER_TYPE_P (TREE_TYPE (t))); - - pi = SSA_NAME_PTR_INFO (t); - if (pi == NULL) - { - pi = ggc_alloc_cleared_ptr_info_def (); - pt_solution_reset (&pi->pt); - SSA_NAME_PTR_INFO (t) = pi; - } - - return pi; -} - /* Dump the points-to set *PT into FILE. */ void |