Commit e9f91f62 by Richard Guenther Committed by Richard Biener

tree-ssa-operands.c (add_virtual_operand): Only mark stores as has_volatile_ops…

tree-ssa-operands.c (add_virtual_operand): Only mark stores as has_volatile_ops if alias information is not available.

2007-09-09  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-operands.c (add_virtual_operand): Only mark
	stores as has_volatile_ops if alias information is not available.

	* gcc.c-torture/compile/20070906-1.c: New testcase.

From-SVN: r128300
parent 20dc9cf4
2007-09-09 Richard Guenther <rguenther@suse.de>
* tree-ssa-operands.c (add_virtual_operand): Only mark
stores as has_volatile_ops if alias information is not available.
2007-09-09 Revital Eres <eres@il.ibm.com> 2007-09-09 Revital Eres <eres@il.ibm.com>
* doc/contrib.texi: Add myself. * doc/contrib.texi: Add myself.
2007-09-09 Richard Guenther <rguenther@suse.de>
* gcc.c-torture/compile/20070906-1.c: New testcase.
2007-09-09 Ira Rosen <irar@il.ibm.com> 2007-09-09 Ira Rosen <irar@il.ibm.com>
* gcc.dg/vect/costmodel/ppc/costmodel-vect-outer-fir.c: Add * gcc.dg/vect/costmodel/ppc/costmodel-vect-outer-fir.c: Add
struct Bar {
int i[8];
};
struct Bar foo(struct Bar **p)
{
return foo((struct Bar**)*p);
}
...@@ -1511,7 +1511,8 @@ add_virtual_operand (tree var, stmt_ann_t s_ann, int flags, ...@@ -1511,7 +1511,8 @@ add_virtual_operand (tree var, stmt_ann_t s_ann, int flags,
if (aliases == NULL) if (aliases == NULL)
{ {
if (!gimple_aliases_computed_p (cfun)) if (!gimple_aliases_computed_p (cfun)
&& (flags & opf_def))
s_ann->has_volatile_ops = true; s_ann->has_volatile_ops = true;
/* The variable is not aliased or it is an alias tag. */ /* The variable is not aliased or it is an alias tag. */
......
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