diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-03-10 05:24:21 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-03-10 04:24:21 +0000 |
commit | caf2df93de6eda7d35f78e31517a13a3676b1f5c (patch) | |
tree | 6649fcc416406122c827c2e5a9961675ab392c9a /gcc/tree-vect-data-refs.c | |
parent | 57ace19f92d886930470b037f7b3cd8ef4cafae4 (diff) | |
download | gcc-caf2df93de6eda7d35f78e31517a13a3676b1f5c.zip gcc-caf2df93de6eda7d35f78e31517a13a3676b1f5c.tar.gz gcc-caf2df93de6eda7d35f78e31517a13a3676b1f5c.tar.bz2 |
re PR tree-optimization/65355 (vectorizer increase alignment of symbols already placed in anchors)
PR tree-optimization/65355
* varasm.c (notice_global_symbol): Do not produce RTL.
* symtab.c (symtab_node::can_increase_alignment_p): Check for section
anchor.
* tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
check for section anchors.
* gcc.dg/vect/section-anchors-vect-69.c: Update template.
From-SVN: r221297
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
-rw-r--r-- | gcc/tree-vect-data-refs.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 5ff6307..b308ac7 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -758,12 +758,7 @@ vect_compute_data_ref_alignment (struct data_reference *dr) && TREE_CODE (TREE_OPERAND (base, 0)) == ADDR_EXPR) base = TREE_OPERAND (TREE_OPERAND (base, 0), 0); - /* Do not change the alignment of global variables here if - flag_section_anchors is enabled as we already generated - RTL for other functions. Most global variables should - have been aligned during the IPA increase_alignment pass. */ - if (!vect_can_force_dr_alignment_p (base, TYPE_ALIGN (vectype)) - || (TREE_STATIC (base) && flag_section_anchors)) + if (!vect_can_force_dr_alignment_p (base, TYPE_ALIGN (vectype))) { if (dump_enabled_p ()) { |