Commit 1800536a by Diego Novillo Committed by Diego Novillo

tree-ssa-operands.c (add_call_clobber_ops): Make read-only test apply only to…

tree-ssa-operands.c (add_call_clobber_ops): Make read-only test apply only to TREE_STATIC and DECL_EXTERNAL.


	* tree-ssa-operands.c (add_call_clobber_ops): Make read-only
	test apply only to TREE_STATIC and DECL_EXTERNAL.

From-SVN: r87615
parent 42759f1e
2004-09-16 Diego Novillo <dnovillo@redhat.com>
* tree-ssa-operands.c (add_call_clobber_ops): Make read-only
test apply only to TREE_STATIC and DECL_EXTERNAL.
2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency. * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
......
...@@ -1620,9 +1620,15 @@ add_call_clobber_ops (tree stmt, tree callee) ...@@ -1620,9 +1620,15 @@ add_call_clobber_ops (tree stmt, tree callee)
with a module static or we may not. So we still must look with a module static or we may not. So we still must look
anywhere else we can (such as the TREE_READONLY) to get anywhere else we can (such as the TREE_READONLY) to get
better info. */ better info. */
/* If VAR is read-only, don't add a V_MAY_DEF, just a /* If VAR is read-only, don't add a V_MAY_DEF, just a
VUSE operand. */ VUSE operand. FIXME, this is quirky. TREE_READONLY
else if (TREE_READONLY (var)) by itself is not enough here. We can only decide
that the call will not affect VAR if all these
conditions are met. One would think that
TREE_READONLY should be sufficient. */
else if (TREE_READONLY (var)
&& (TREE_STATIC (var) || DECL_EXTERNAL (var)))
add_stmt_operand (&var, stmt, opf_none); add_stmt_operand (&var, stmt, opf_none);
else else
add_stmt_operand (&var, stmt, opf_is_def); add_stmt_operand (&var, stmt, opf_is_def);
......
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