diff options
author | Segher Boessenkool <segher@gcc.gnu.org> | 2019-04-17 20:49:50 +0200 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2019-04-17 20:49:50 +0200 |
commit | 46786144dd77505a5e06c8ac9fd353e84eb38d89 (patch) | |
tree | a9135598ac7b19904ab741739d69e18de52a9832 /gcc/c | |
parent | f64e89775fc23fc57b1631f0c0e80a96150e3cd8 (diff) | |
download | gcc-46786144dd77505a5e06c8ac9fd353e84eb38d89.zip gcc-46786144dd77505a5e06c8ac9fd353e84eb38d89.tar.gz gcc-46786144dd77505a5e06c8ac9fd353e84eb38d89.tar.bz2 |
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.
From-SVN: r270419
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions