aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2021-11-13 18:21:12 +0100
committerJan Hubicka <jh@suse.cz>2021-11-13 18:21:12 +0100
commite0040bc3d97f11063fe0a5156a2d27d36069fb34 (patch)
tree77b1c7bb0aefa2331155ae41cc1117b65419ce01 /gcc/tree-ssa-structalias.c
parent2af63f0f53a12a7275b99d92b271d3dff5112690 (diff)
downloadgcc-e0040bc3d97f11063fe0a5156a2d27d36069fb34.zip
gcc-e0040bc3d97f11063fe0a5156a2d27d36069fb34.tar.gz
gcc-e0040bc3d97f11063fe0a5156a2d27d36069fb34.tar.bz2
Add finalize method to modref summary.
gcc/ChangeLog: * ipa-modref.c (modref_summary::global_memory_read_p): Remove. (modref_summary::global_memory_written_p): Remove. (modref_summary::dump): Dump new flags. (modref_summary::finalize): New member function. (analyze_function): Call it. (read_section): Call it. (update_signature): Call it. (pass_ipa_modref::execute): Call it. * ipa-modref.h (struct modref_summary): Remove global_memory_read_p and global_memory_written_p. Add global_memory_read, global_memory_written. * tree-ssa-structalias.c (determine_global_memory_access): Update.
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 34fd47f..6141e94 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -4262,9 +4262,9 @@ determine_global_memory_access (gcall *stmt,
&& (summary = get_modref_function_summary (node)))
{
if (writes_global_memory && *writes_global_memory)
- *writes_global_memory = summary->global_memory_written_p ();
+ *writes_global_memory = summary->global_memory_written;
if (reads_global_memory && *reads_global_memory)
- *reads_global_memory = summary->global_memory_read_p ();
+ *reads_global_memory = summary->global_memory_read;
if (reads_global_memory && uses_global_memory
&& !*reads_global_memory && node->binds_to_current_def_p ())
*uses_global_memory = false;