diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-30 12:02:09 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-30 12:02:09 +0000 |
commit | 58c50d3ffedc70844cc2d28a75c369eb9e95e35b (patch) | |
tree | a1ec2dcdcfc29c5e53fc7abed01106497d065f6b /gcc/tree-ssa-operands.c | |
parent | 3631101ef276e2da01f4f6e12e38d568cc24e9a9 (diff) | |
download | gcc-58c50d3ffedc70844cc2d28a75c369eb9e95e35b.tar.gz |
* tree-ssa-alias.c (create_structure_vars): When in SSA, update operand
caches.
* tree-ssa-operands.c (build_ssa_operands): Recompute addresses_taken
bitmap.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120284 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index d47d19cba1a..9d4b84cc709 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -2337,6 +2337,9 @@ build_ssa_operands (tree stmt) makes no memory references. */ ann->has_volatile_ops = false; ann->references_memory = false; + /* Just clear the bitmap so we don't end up reallocating it over and over. */ + if (ann->addresses_taken) + bitmap_clear (ann->addresses_taken); start_ssa_stmt_operands (); parse_ssa_operands (stmt); @@ -2344,6 +2347,8 @@ build_ssa_operands (tree stmt) operand_build_sort_virtual (build_vdefs); finalize_ssa_stmt_operands (stmt); + if (ann->addresses_taken && bitmap_empty_p (ann->addresses_taken)) + ann->addresses_taken = NULL; /* For added safety, assume that statements with volatile operands also reference memory. */ if (ann->has_volatile_ops) |