Message ID | 9a7d15e8-7437-10e7-3155-a719afb33dd0@linux.ibm.com |
---|---|
State | New |
Headers | show |
Series | vect: Don't update inits for simd_lane_access DRs [PR102789] | expand |
On Mon, Oct 25, 2021 at 11:01:35AM +0800, Kewen.Lin wrote: > gcc/ChangeLog: > > PR tree-optimization/102789 > * tree-vect-loop-manip.c (vect_update_inits_of_drs): Do not > update inits of simd_lane_access. Ok, thanks. > diff --git a/gcc/tree-vect-loop-manip.c b/gcc/tree-vect-loop-manip.c > index 4988c93fdb6..378b1026baa 100644 > --- a/gcc/tree-vect-loop-manip.c > +++ b/gcc/tree-vect-loop-manip.c > @@ -1820,7 +1820,8 @@ vect_update_inits_of_drs (loop_vec_info loop_vinfo, tree niters, > FOR_EACH_VEC_ELT (datarefs, i, dr) > { > dr_vec_info *dr_info = loop_vinfo->lookup_dr (dr); > - if (!STMT_VINFO_GATHER_SCATTER_P (dr_info->stmt)) > + if (!STMT_VINFO_GATHER_SCATTER_P (dr_info->stmt) > + && !STMT_VINFO_SIMD_LANE_ACCESS_P (dr_info->stmt)) > vect_update_init_of_dr (dr_info, niters, code); > } > } Jakub
diff --git a/gcc/tree-vect-loop-manip.c b/gcc/tree-vect-loop-manip.c index 4988c93fdb6..378b1026baa 100644 --- a/gcc/tree-vect-loop-manip.c +++ b/gcc/tree-vect-loop-manip.c @@ -1820,7 +1820,8 @@ vect_update_inits_of_drs (loop_vec_info loop_vinfo, tree niters, FOR_EACH_VEC_ELT (datarefs, i, dr) { dr_vec_info *dr_info = loop_vinfo->lookup_dr (dr); - if (!STMT_VINFO_GATHER_SCATTER_P (dr_info->stmt)) + if (!STMT_VINFO_GATHER_SCATTER_P (dr_info->stmt) + && !STMT_VINFO_SIMD_LANE_ACCESS_P (dr_info->stmt)) vect_update_init_of_dr (dr_info, niters, code); } }