Re: [PATCH] Using sub-scalars mode to move struct block

2022-11-14 Thread Jiufu Guo via Gcc-patches
Hi! Thanks for your helpful comments/sugguestions! Richard Biener writes: > On Mon, 14 Nov 2022, Jiufu Guo wrote: > >> >> Hi! >> Thanks so much for your review! >> >> Richard Biener writes: >> >> > On Fri, 11 Nov 2022, Jiufu Guo wrote: >> > >> >> Hi, >> >> >> >> When assigning a struct par

Re: [PATCH] Using sub-scalars mode to move struct block

2022-11-13 Thread Richard Biener via Gcc-patches
On Mon, 14 Nov 2022, Jiufu Guo wrote: > > Hi! > Thanks so much for your review! > > Richard Biener writes: > > > On Fri, 11 Nov 2022, Jiufu Guo wrote: > > > >> Hi, > >> > >> When assigning a struct parameter to another variable, or loading a > >> memory block to a struct var (especially for r

Re: [PATCH] Using sub-scalars mode to move struct block

2022-11-13 Thread Jiufu Guo via Gcc-patches
Hi! Thanks so much for your review! Richard Biener writes: > On Fri, 11 Nov 2022, Jiufu Guo wrote: > >> Hi, >> >> When assigning a struct parameter to another variable, or loading a >> memory block to a struct var (especially for return value), >> Now, "block move" would be used during expand

Re: [PATCH] Using sub-scalars mode to move struct block

2022-11-11 Thread Richard Biener via Gcc-patches
On Fri, 11 Nov 2022, Jiufu Guo wrote: > Hi, > > When assigning a struct parameter to another variable, or loading a > memory block to a struct var (especially for return value), > Now, "block move" would be used during expand the assignment. And > the "block move" may use a type/mode different fr

[PATCH] Using sub-scalars mode to move struct block

2022-11-11 Thread Jiufu Guo via Gcc-patches
Hi, When assigning a struct parameter to another variable, or loading a memory block to a struct var (especially for return value), Now, "block move" would be used during expand the assignment. And the "block move" may use a type/mode different from the mode which is accessing the var. e.g. on ppc