re PR middle-end/45379 (~10% slowdown on test_fpu at revision 163278)

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

	PR middle-end/45379
	* emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
	TARGET_MEM_REF in alignment computation.

From-SVN: r163540
This commit is contained in:
Richard Guenther 2010-08-25 10:03:19 +00:00 committed by Richard Biener
parent ca046f7f4e
commit 9407f6bcfb
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-08-25 Richard Guenther <rguenther@suse.de>
PR middle-end/45379
* emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
TARGET_MEM_REF in alignment computation.
2010-08-25 Jakub Jelinek <jakub@redhat.com> 2010-08-25 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/45059 PR tree-optimization/45059

View File

@ -1615,6 +1615,11 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp,
align = MAX (align, TYPE_ALIGN (type)); align = MAX (align, TYPE_ALIGN (type));
} }
else if (TREE_CODE (t) == TARGET_MEM_REF)
/* ??? This isn't fully correct, we can't set the alignment from the
type in all cases. */
align = MAX (align, TYPE_ALIGN (type));
else if (TREE_CODE (t) == MISALIGNED_INDIRECT_REF) else if (TREE_CODE (t) == MISALIGNED_INDIRECT_REF)
{ {
if (integer_zerop (TREE_OPERAND (t, 1))) if (integer_zerop (TREE_OPERAND (t, 1)))