Re: [patch] Fix minor SLSR pessimization

2019-08-02 Thread Bill Schmidt
On 8/2/19 8:15 AM, Eric Botcazou wrote: > Hi, > > an user reported that, for pairs of consecutive memory accesses, the SLSR > pass > can slightly pessimize the generated code at -O2 on the x86 architecture: > > struct x > { > int a[16]; > int b[16]; > }; > > void > set (struct x *p, unsigned

[patch] Fix minor SLSR pessimization

2019-08-02 Thread Eric Botcazou
Hi, an user reported that, for pairs of consecutive memory accesses, the SLSR pass can slightly pessimize the generated code at -O2 on the x86 architecture: struct x { int a[16]; int b[16]; }; void set (struct x *p, unsigned int n, int i) { p->a[n] = i; p->b[n] = i; } is compiled with