aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dce.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-04-27 11:58:20 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-04-27 11:58:20 +0000
commit209be5530933e20eee6b7d7141c11a535f0461e2 (patch)
tree414ccb0957bfcd13bd3b6838959bdaa52d3ef9c4 /gcc/tree-ssa-dce.c
parentc813039daf28641024012fda1497960147923757 (diff)
downloadgcc-209be5530933e20eee6b7d7141c11a535f0461e2.zip
gcc-209be5530933e20eee6b7d7141c11a535f0461e2.tar.gz
gcc-209be5530933e20eee6b7d7141c11a535f0461e2.tar.bz2
tree-flow.h (is_hidden_global_store): Remove.
2012-04-27 Richard Guenther <rguenther@suse.de> * tree-flow.h (is_hidden_global_store): Remove. * tree-ssa-sink.c (is_hidden_global_store): Likewise. * tree-ssa-alias.h (ref_may_alias_global_p): Declare. (stmt_may_clobber_global_p): Likewise. * tree-ssa-alias.c (ref_may_alias_global_p): New function. (stmt_may_clobber_global_p): Likewise. * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call stmt_may_clobber_global_p. * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise. From-SVN: r186903
Diffstat (limited to 'gcc/tree-ssa-dce.c')
-rw-r--r--gcc/tree-ssa-dce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c
index ace9ef9..d954f3b 100644
--- a/gcc/tree-ssa-dce.c
+++ b/gcc/tree-ssa-dce.c
@@ -370,7 +370,7 @@ mark_stmt_if_obviously_necessary (gimple stmt, bool aggressive)
return;
}
- if (is_hidden_global_store (stmt))
+ if (stmt_may_clobber_global_p (stmt))
{
mark_stmt_necessary (stmt, true);
return;