summaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-01 15:46:17 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-01 15:46:17 +0000
commitff9029e29a5251820317032344a3c941c8130428 (patch)
treeb202aa2467b494699e5ef824b920e29ac2f4a470 /gcc/tree-sra.c
parent972f61314ec86e4e8f5b020bc17089566c5d9cd1 (diff)
downloadgcc-ff9029e29a5251820317032344a3c941c8130428.tar.gz
2011-07-01 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175760 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index d244766b0e2..ca9f316f712 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -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;