]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/45379 (~10% slowdown on test_fpu at revision 163278)
authorRichard Guenther <rguenther@suse.de>
Wed, 25 Aug 2010 10:03:19 +0000 (10:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 25 Aug 2010 10:03:19 +0000 (10:03 +0000)
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

gcc/ChangeLog
gcc/emit-rtl.c

index 28a831a515bbc3ba3f6fdfe9a279f32570560ba6..f9a60824362fa5fd91021a26723574edd38f0f4b 100644 (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>
 
        PR tree-optimization/45059
index 9f96abf76d26905838f8e330add2f55cf781a98c..2993c93874fcd2323c02b85dfe598a84b318d829 100644 (file)
@@ -1615,6 +1615,11 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp,
        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)
     {
       if (integer_zerop (TREE_OPERAND (t, 1)))