]> git.ipfire.org Git - thirdparty/gcc.git/commit
auto-inc-dec: Set alignment properly
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Apr 2019 18:49:50 +0000 (18:49 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Apr 2019 18:49:50 +0000 (18:49 +0000)
commit23cc60828314b850b760d348366e56352196539b
treea9135598ac7b19904ab741739d69e18de52a9832
parentf1d497bc5a444ac789706a648f2570c1433be1da
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270419 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/auto-inc-dec.c