Re: [5/7] Add DR_BASE_ALIGNMENT and DR_BASE_MISALIGNMENT

2017-07-03 Thread Richard Biener
On Mon, Jul 3, 2017 at 9:38 AM, Richard Sandiford wrote: > This patch records the base alignment and misalignment in > innermost_loop_behavior, to avoid the second-guessing that was > previously done in vect_compute_data_ref_alignment. It also makes > vect_analyze_data_refs use dr_analyze_innermo

[5/7] Add DR_BASE_ALIGNMENT and DR_BASE_MISALIGNMENT

2017-07-03 Thread Richard Sandiford
This patch records the base alignment and misalignment in innermost_loop_behavior, to avoid the second-guessing that was previously done in vect_compute_data_ref_alignment. It also makes vect_analyze_data_refs use dr_analyze_innermost, instead of having an almost-copy of the same code. I wasn't s

Re: Add DR_BASE_ALIGNMENT

2017-07-02 Thread Richard Sandiford
ost): Add a tree argument. >> * tree-data-ref.c: Include builtins.h. >> (dr_analyze_innermost): Take the tree reference as argument. >> Set up DR_BASE_ALIGNMENT. >> (create_data_ref): Update call accordingly. >> * tree-predcom.c

Re: Add DR_BASE_ALIGNMENT

2017-06-29 Thread Richard Biener
s argument. > Set up DR_BASE_ALIGNMENT. > (create_data_ref): Update call accordingly. > * tree-predcom.c (find_looparound_phi): Likewise. > * tree-vectorizer.h (_stmt_vec_info): Add dr_base_alignment. > (STMT_VINFO_DR_BASE_ALIGNMENT):

Add DR_BASE_ALIGNMENT

2017-06-28 Thread Richard Sandiford
tree-data-ref.c: Include builtins.h. (dr_analyze_innermost): Take the tree reference as argument. Set up DR_BASE_ALIGNMENT. (create_data_ref): Update call accordingly. * tree-predcom.c (find_looparound_phi): Likewise. * tree-vectorizer.h (_stmt_vec_