diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-07 15:46:33 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-07 15:46:33 +0000 |
commit | 9b973aa648c291807fcba7c53eac3d74edbb4801 (patch) | |
tree | b05e1e4a81c7eaabbd997e655c7ff44c94348619 /gcc/tree-ssa-alias.c | |
parent | 440ec0bed91beb602752f064a35b245f1ccff0c9 (diff) | |
download | gcc-9b973aa648c291807fcba7c53eac3d74edbb4801.tar.gz |
2009-04-07 Martin Jambor <mjambor@suse.cz>
* tree-ssa-alias.c (refs_may_alias_p_1): Check for
is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
ADDR_EXPRS are include too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145685 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r-- | gcc/tree-ssa-alias.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index f97502a606a..b9cd54732b9 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -688,9 +688,9 @@ refs_may_alias_p_1 (tree ref1, tree ref2) *D.1663_44 = VIEW_CONVERT_EXPR<struct DB_LSN>(__tmp$B0F64_59); which is seen as a struct copy. */ if (TREE_CODE (base1) == SSA_NAME - || CONSTANT_CLASS_P (base1) || TREE_CODE (base2) == SSA_NAME - || CONSTANT_CLASS_P (base2)) + || is_gimple_min_invariant (base1) + || is_gimple_min_invariant (base2)) return false; var1_p = SSA_VAR_P (base1); |