Commit e73cfe5d by Richard Guenther Committed by Richard Biener

re PR rtl-optimization/44838 (RTL loop unrolling causes FAIL: gcc.dg/pr39794.c)

2010-07-08  Richard Guenther  <rguenther@suse.de>

	PR rtl-optimization/44838
	* tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
	SSA form do not use pointer equivalence.

From-SVN: r161945
parent 51d49bc2
2010-07-08 Richard Guenther <rguenther@suse.de>
PR rtl-optimization/44838
* tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
SSA form do not use pointer equivalence.
2010-07-08 Eric Botcazou <ebotcazou@adacore.com> 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
* dwarf2out.c (AT_linkage_name): Delete. * dwarf2out.c (AT_linkage_name): Delete.
......
...@@ -801,7 +801,8 @@ indirect_refs_may_alias_p (tree ref1 ATTRIBUTE_UNUSED, tree base1, ...@@ -801,7 +801,8 @@ indirect_refs_may_alias_p (tree ref1 ATTRIBUTE_UNUSED, tree base1,
/* If both bases are based on pointers they cannot alias if they may not /* If both bases are based on pointers they cannot alias if they may not
point to the same memory object or if they point to the same object point to the same memory object or if they point to the same object
and the accesses do not overlap. */ and the accesses do not overlap. */
if (operand_equal_p (ptr1, ptr2, 0)) if ((!cfun || gimple_in_ssa_p (cfun))
&& operand_equal_p (ptr1, ptr2, 0))
{ {
if (TREE_CODE (base1) == MEM_REF) if (TREE_CODE (base1) == MEM_REF)
offset1 += mem_ref_offset (base1).low * BITS_PER_UNIT; offset1 += mem_ref_offset (base1).low * BITS_PER_UNIT;
......
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