* tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
get_pointer_alignment to see if base isn't sufficiently aligned.
From-SVN: r175348
+2011-06-23 Jakub Jelinek <jakub@redhat.com>
+
+ * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
+ get_pointer_alignment to see if base isn't sufficiently aligned.
+
2011-06-23 Jan Hubicka <jh@suse.cz>
PR tree-optimize/49373
|| (TREE_CODE (base_addr) == SSA_NAME
&& tree_int_cst_compare (ssize_int (TYPE_ALIGN_UNIT (TREE_TYPE (
TREE_TYPE (base_addr)))),
- alignment) >= 0))
+ alignment) >= 0)
+ || (get_pointer_alignment (base_addr, TYPE_ALIGN (vectype))
+ >= TYPE_ALIGN (vectype)))
base_aligned = true;
else
base_aligned = false;