Commit a15138a4 by Richard Guenther Committed by Richard Biener

tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.

2008-10-19  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.

From-SVN: r141229
parent 25bbe9bc
2008-10-19 Richard Guenther <rguenther@suse.de>
* tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.
2008-10-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/30260
......
......@@ -2985,16 +2985,6 @@ may_alias_p (tree ptr, alias_set_type mem_alias_set,
return false;
}
/* If either MEM or VAR is a read-only global and the other one
isn't, then PTR cannot point to VAR. */
if ((unmodifiable_var_p (mem) && !unmodifiable_var_p (var))
|| (unmodifiable_var_p (var) && !unmodifiable_var_p (mem)))
{
alias_stats.alias_noalias++;
alias_stats.simple_resolved++;
return false;
}
/* If the pointed to memory has alias set zero, or the pointer
is ref-all, or the pointer decl is marked that no TBAA is to
be applied, the MEM can alias VAR. */
......
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