re PR rtl-optimization/47414 (wrong code with -O -freorder-blocks -fschedule-insns2 -fno-early-inlining -fstrict-aliasing -ftracer)

2011-01-25  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47414
	* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
	correct type for TBAA.

From-SVN: r169223
This commit is contained in:
Richard Guenther 2011-01-25 09:55:54 +00:00 committed by Richard Biener
parent 7c48ea6910
commit 5bd6e6526c
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-01-25 Richard Guenther <rguenther@suse.de>
PR middle-end/47414
* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
correct type for TBAA.
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.

View File

@ -808,7 +808,8 @@ indirect_ref_may_alias_decl_p (tree ref1 ATTRIBUTE_UNUSED, tree base1,
return aliasing_component_refs_p (ref1, TREE_TYPE (ptrtype1),
ref1_alias_set, base1_alias_set,
offset1, max_size1,
ref2, TREE_TYPE (base2),
ref2, TREE_TYPE
(reference_alias_ptr_type (ref2)),
ref2_alias_set, base2_alias_set,
offset2, max_size2, true);