Commit 54e7d067 by Jan Hubicka Committed by Jan Hubicka

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
parent b730fa61
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.
(tree_decl_common): Remove call_clobbered flag.
* tree-flow.h (struct var_ann_d): Add call_clobbered flag.
......
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment