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> 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.h (DECL_CALL_CLOBBERED): Remove.
(tree_decl_common): Remove call_clobbered flag. (tree_decl_common): Remove call_clobbered flag.
* tree-flow.h (struct var_ann_d): Add call_clobbered flag. * tree-flow.h (struct var_ann_d): Add call_clobbered flag.
......
...@@ -163,7 +163,8 @@ check_operand (funct_state local, ...@@ -163,7 +163,8 @@ check_operand (funct_state local,
static void static void
check_tree (funct_state local, tree t, bool checking_write) 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; return;
/* Any tree which is volatile disqualifies thie function from being /* Any tree which is volatile disqualifies thie function from being
......
...@@ -1267,7 +1267,11 @@ scan_for_refs (tree *tp, int *walk_subtrees, void *data) ...@@ -1267,7 +1267,11 @@ scan_for_refs (tree *tp, int *walk_subtrees, void *data)
result so we do mark the resulting cast as being result so we do mark the resulting cast as being
bad. */ bad. */
if (check_call (rhs)) 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; break;
default: default:
break; 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