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
This commit is contained in:
Jan Hubicka 2006-12-30 13:15:16 +01:00 committed by Jan Hubicka
parent b730fa614c
commit 54e7d067d5
3 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-12-30 Jan Hubicka <jh@suse.cz>
* ipa-pure-const.c (check_operand): SSA_NAME is safe.
* ipa-type-escape.c (scan_for_refs): Look into SSA_NAMEs.
2006-12-30 Jan Hubicka <jh@suse.cz>
* tree.h (DECL_CALL_CLOBBERED): Remove.

View file

@ -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

View file

@ -1267,7 +1267,11 @@ scan_for_refs (tree *tp, int *walk_subtrees, void *data)
result so we do mark the resulting cast as being
bad. */
if (check_call (rhs))
bitmap_set_bit (results_of_malloc, DECL_UID (lhs));
{
if (TREE_CODE (lhs) == SSA_NAME)
lhs = SSA_NAME_VAR (lhs);
bitmap_set_bit (results_of_malloc, DECL_UID (lhs));
}
break;
default:
break;