r270419 - in /trunk/gcc: ChangeLog auto-inc-dec.c
segher@gcc.gnu.org
segher@gcc.gnu.org
Wed Apr 17 18:49:00 GMT 2019
Author: segher
Date: Wed Apr 17 18:49:50 2019
New Revision: 270419
URL: https://gcc.gnu.org/viewcvs?rev=270419&root=gcc&view=rev
Log:
auto-inc-dec: Set alignment properly
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.
* auto-inc-dec.c (attempt_change): Set the alignment of the
temporary memory to that of the original.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/auto-inc-dec.c
More information about the Gcc-cvs
mailing list