diff options
author | Jan Hubicka <jh@suse.cz> | 2006-12-30 13:15:16 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2006-12-30 12:15:16 +0000 |
commit | 54e7d067d5f79ec637ca301e69b70665df0d16dd (patch) | |
tree | 51b0eb0f3a9d7bbca8347803bbb5cb19dffa4988 /gcc/ipa-pure-const.c | |
parent | b730fa614c4ff07c45ea726a6d6ce3260d268b6f (diff) | |
download | gcc-54e7d067d5f79ec637ca301e69b70665df0d16dd.zip gcc-54e7d067d5f79ec637ca301e69b70665df0d16dd.tar.gz gcc-54e7d067d5f79ec637ca301e69b70665df0d16dd.tar.bz2 |
ipa-pure-const.c (check_operand): SSA_NAME is safe.
* ipa-pure-const.c (check_operand): SSA_NAME is safe.
* ipa-type-escape.c (scan_for_refs): Look into SSA_NAMEs.
From-SVN: r120286
Diffstat (limited to 'gcc/ipa-pure-const.c')
-rw-r--r-- | gcc/ipa-pure-const.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index bd1d72b..5f19af8 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -163,7 +163,8 @@ check_operand (funct_state local, static void check_tree (funct_state local, tree t, bool checking_write) { - if ((TREE_CODE (t) == EXC_PTR_EXPR) || (TREE_CODE (t) == FILTER_EXPR)) + if ((TREE_CODE (t) == EXC_PTR_EXPR) || (TREE_CODE (t) == FILTER_EXPR) + || TREE_CODE (t) == SSA_NAME) return; /* Any tree which is volatile disqualifies thie function from being |