tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
authorMartin Jambor <mjambor@suse.cz>
Fri, 1 Jul 2011 15:46:17 +0000 (17:46 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 1 Jul 2011 15:46:17 +0000 (17:46 +0200)
2011-07-01  Martin Jambor  <mjambor@suse.cz>

* tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.

From-SVN: r175760

gcc/ChangeLog
gcc/tree-sra.c

index bdca0af17fee10477e74bab48c9f2d3cde79c5b1..38c0854e3516f150dc89f352bbdd7f41d86980ef 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-01  Martin Jambor  <mjambor@suse.cz>
+
+       * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
+
 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR middle-end/48016
index d244766b0e2d742663206eb771081f3e903e3735..ca9f316f7128b8a46c58022682df956fd82f11f1 100644 (file)
@@ -1076,6 +1076,7 @@ tree_non_mode_aligned_mem_p (tree exp)
   unsigned int align;
 
   if (TREE_CODE (exp) == SSA_NAME
+      || TREE_CODE (exp) == MEM_REF
       || mode == BLKmode
       || !STRICT_ALIGNMENT)
     return false;