Re: [PATCH] auto-inc-dec: Set alignment properly

2019-04-17 Thread Jeff Law
On 4/17/19 4:13 AM, Segher Boessenkool wrote: > When auto-inc-dec creates a new mem to compute the cost of doing some > transform, it forgets to copy over the alignment of the original mem. > This gives wrong costs, for example, for rs6000 a floating point load > or store is hugely expensive if una

[PATCH] auto-inc-dec: Set alignment properly

2019-04-17 Thread Segher Boessenkool
When auto-inc-dec creates a new mem to compute the cost of doing some transform, it forgets to copy over the alignment of the original mem. This gives wrong costs, for example, for rs6000 a floating point load or store is hugely expensive if unaligned. This patch fixes it. This doesn't fix any te