RE: [PATCH PR95199] vect: Remove extra variable created for memory reference

2020-06-14 Thread Richard Biener
rd [mailto:richard.sandif...@arm.com] > > Sent: Friday, June 12, 2020 3:48 PM > > To: zhoukaipeng (A) > > Cc: gcc-patches@gcc.gnu.org; rguent...@suse.de; am...@gcc.gnu.org; > > rgue...@gcc.gnu.org > > Subject: Re: [PATCH PR95199] vect: Remove extra variable created for &

RE: [PATCH PR95199] vect: Remove extra variable created for memory reference

2020-06-14 Thread zhoukaipeng (A)
ge- > From: Richard Sandiford [mailto:richard.sandif...@arm.com] > Sent: Friday, June 12, 2020 3:48 PM > To: zhoukaipeng (A) > Cc: gcc-patches@gcc.gnu.org; rguent...@suse.de; am...@gcc.gnu.org; > rgue...@gcc.gnu.org > Subject: Re: [PATCH PR95199] vect: Remove extra variable created for > m

Re: [PATCH PR95199] vect: Remove extra variable created for memory reference

2020-06-12 Thread Richard Sandiford
"zhoukaipeng (A)" writes: > Hi, > > This is a fix for pr95199. > In vectorization, vinfo->ivexpr_map is supposed to catch those "IV base > and/or step expressions". Just call cse_and_gimplify_to_preheader to handle > gathering/scattering to avoid the extra variable. > > Bootstrap and tested on